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
parent c1bf52e8d9
commit e5576dff1e

View file

@ -96,7 +96,7 @@ class _UI(object):
self.__options.loglevel = "none"
# Setup the logger
deluge.log.setupLogger(level=self.__options.loglevel, filename=self.__options.logfile)
deluge.log.setupLogger(level=self.__options.loglevel.lower(), filename=self.__options.logfile)
log = deluge.log.LOG
if self.__options.config: