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:
|
if self.__options.rotate_logs:
|
||||||
logfile_mode = 'a'
|
logfile_mode = 'a'
|
||||||
|
|
||||||
# Setup the logger
|
if self.__options.loglevel:
|
||||||
|
self.__options.loglevel = self.__options.loglevel.lower()
|
||||||
|
|
||||||
# Setup the logger
|
# Setup the logger
|
||||||
deluge.log.setupLogger(level=self.__options.loglevel,
|
deluge.log.setupLogger(level=self.__options.loglevel,
|
||||||
filename=self.__options.logfile,
|
filename=self.__options.logfile,
|
||||||
|
|
Loading…
Reference in New Issue