mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fixed error 'No handlers could be found' issue
This commit is contained in:
parent
628f2fed1f
commit
33c070ae13
@ -84,6 +84,9 @@ class Logger(object):
|
||||
# add a new logging level DB
|
||||
logging.addLevelName(DB, 'DB')
|
||||
|
||||
# nullify root logger
|
||||
logging.getLogger().addHandler(NullHandler())
|
||||
|
||||
# set custom root logger
|
||||
for logger in self.loggers:
|
||||
if logger is not self.logger.logger:
|
||||
|
Loading…
Reference in New Issue
Block a user