log: Remove redundant code

This commit is contained in:
Stein Magnus Jodal 2014-02-06 23:21:06 +01:00
parent 40cadbfa26
commit 00f1259683

View File

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