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,