mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Include our custom lower log levels into python's logging.
This commit is contained in:
parent
6391970fad
commit
9a3bf35cdf
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue