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:
Damien Churchill 2012-01-17 16:58:18 +00:00 committed by Calum Lind
parent f4fab86767
commit da868347cf
1 changed files with 3 additions and 1 deletions

View File

@ -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,