mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 13:05:37 +00:00
ui: fix setting capital log level
Whilst providing the log level as a lowercase string has worked for a long time trying to use DEBUG doesn't work, so lowercase the string first.
This commit is contained in:
parent
f4fab86767
commit
da868347cf
@ -104,7 +104,9 @@ class _UI(object):
|
||||
if self.__options.rotate_logs:
|
||||
logfile_mode = 'a'
|
||||
|
||||
# Setup the logger
|
||||
if self.__options.loglevel:
|
||||
self.__options.loglevel = self.__options.loglevel.lower()
|
||||
|
||||
# Setup the logger
|
||||
deluge.log.setupLogger(level=self.__options.loglevel,
|
||||
filename=self.__options.logfile,
|
||||
|
Loading…
x
Reference in New Issue
Block a user