From 5a184a5489b1da7f7c3c0fc88ab51e4c420d5cec Mon Sep 17 00:00:00 2001 From: caryoscelus Date: Sun, 23 Jul 2023 20:57:09 +0000 Subject: [PATCH] Don't hide warnings in console WARNING logging level is higher than INFO so really shouldn't hide them.. --- src/Config.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Config.py b/src/Config.py index 9f5de779..e1c397e2 100644 --- a/src/Config.py +++ b/src/Config.py @@ -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()