Don't hide warnings in console
WARNING logging level is higher than INFO so really shouldn't hide them..
This commit is contained in:
parent
76d1b14eaf
commit
5a184a5489
1 changed files with 0 additions and 4 deletions
|
@ -797,10 +797,6 @@ class Config(object):
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print("Can't change permission of %s: %s" % (self.log_dir, 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
|
logging.getLogger('').name = "-" # Remove root prefix
|
||||||
|
|
||||||
self.error_logger = ErrorLogHandler()
|
self.error_logger = ErrorLogHandler()
|
||||||
|
|
Loading…
Reference in a new issue