1
0
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:
echel0n 2014-12-16 23:33:35 -08:00
parent 628f2fed1f
commit 33c070ae13

View File

@ -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: