mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-05 19:08:02 -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
|
# add a new logging level DB
|
||||||
logging.addLevelName(DB, 'DB')
|
logging.addLevelName(DB, 'DB')
|
||||||
|
|
||||||
|
# nullify root logger
|
||||||
|
logging.getLogger().addHandler(NullHandler())
|
||||||
|
|
||||||
# set custom root logger
|
# set custom root logger
|
||||||
for logger in self.loggers:
|
for logger in self.loggers:
|
||||||
if logger is not self.logger.logger:
|
if logger is not self.logger.logger:
|
||||||
|
Loading…
Reference in New Issue
Block a user