mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 12:34:43 +00:00
Fix bug introduced in previous commit.
This commit is contained in:
parent
26e45dcbc8
commit
49e10ea0cf
@ -155,8 +155,9 @@ def setupLogger(level="error", filename=None, filemode="w"):
|
||||
delay=0
|
||||
)
|
||||
elif filename and filemode=='w':
|
||||
getattr(logging.handlers, 'WatchedFileHandler', logging.FileHandler)(
|
||||
filename, filemode, 'utf-8', delay=0
|
||||
handler = getattr(
|
||||
logging.handlers, 'WatchedFileHandler', logging.FileHandler)(
|
||||
filename, filemode, 'utf-8', delay=0
|
||||
)
|
||||
else:
|
||||
handler = logging.StreamHandler()
|
||||
|
Loading…
x
Reference in New Issue
Block a user