From 00f1259683dba87a77117a6e8664c3e8bbc3724c Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Thu, 6 Feb 2014 23:21:06 +0100 Subject: [PATCH] log: Remove redundant code --- mopidy/utils/log.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mopidy/utils/log.py b/mopidy/utils/log.py index c3a6a3d4..80bf3997 100644 --- a/mopidy/utils/log.py +++ b/mopidy/utils/log.py @@ -39,7 +39,6 @@ def setup_logging(config, verbosity_level, save_debug_log): # added. If not, the other handlers will have no effect. logging.config.fileConfig(config['logging']['config_file']) - setup_log_levels(config) setup_console_logging(config, verbosity_level) if save_debug_log: setup_debug_logging_to_file(config) @@ -47,11 +46,6 @@ def setup_logging(config, verbosity_level, save_debug_log): _delayed_handler.release() -def setup_log_levels(config): - for name, level in config['loglevels'].items(): - logging.getLogger(name).setLevel(level) - - LOG_LEVELS = { -1: dict(root=logging.ERROR, mopidy=logging.WARNING), 0: dict(root=logging.ERROR, mopidy=logging.INFO),