From da868347cf8da28882292c963bd798e72cd41377 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 17 Jan 2012 16:58:18 +0000 Subject: [PATCH] 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. --- deluge/ui/ui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/ui/ui.py b/deluge/ui/ui.py index 2378f437b..3abd954ae 100644 --- a/deluge/ui/ui.py +++ b/deluge/ui/ui.py @@ -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,