mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-17 23:01:01 +00:00
Fix #1470.
This commit is contained in:
parent
1f800bf49a
commit
356808b02c
@ -141,7 +141,7 @@ def setupLogger(level="error", filename=None, filemode="w"):
|
||||
if logging.getLoggerClass() is not Logging:
|
||||
logging.setLoggerClass(Logging)
|
||||
|
||||
level = levels.get(level, "error")
|
||||
level = levels.get(level, logging.ERROR)
|
||||
|
||||
rootLogger = logging.getLogger()
|
||||
|
||||
@ -162,6 +162,7 @@ def setupLogger(level="error", filename=None, filemode="w"):
|
||||
)
|
||||
else:
|
||||
handler = logging.StreamHandler()
|
||||
|
||||
handler.setLevel(level)
|
||||
|
||||
formatter = logging.Formatter(
|
||||
|
Loading…
x
Reference in New Issue
Block a user