Don't hide warnings in console

WARNING logging level is higher than INFO so really shouldn't hide them..
This commit is contained in:
caryoscelus 2023-07-23 20:57:09 +00:00
parent 76d1b14eaf
commit 5a184a5489

View file

@ -797,10 +797,6 @@ class Config(object):
except Exception as err:
print("Can't change permission of %s: %s" % (self.log_dir, err))
# Make warning hidden from console
logging.WARNING = 15 # Don't display warnings if not in debug mode
logging.addLevelName(15, "WARNING")
logging.getLogger('').name = "-" # Remove root prefix
self.error_logger = ErrorLogHandler()