mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Include our custom lower log levels into python's logging.
This commit is contained in:
parent
6391970fad
commit
9a3bf35cdf
@ -141,6 +141,8 @@ def setupLogger(level="error", filename=None, filemode="w"):
|
||||
|
||||
if logging.getLoggerClass() is not Logging:
|
||||
logging.setLoggerClass(Logging)
|
||||
logging.addLevelName(5, 'TRACE')
|
||||
logging.addLevelName(1, 'GARBAGE')
|
||||
|
||||
level = levels.get(level, logging.ERROR)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user