From eb9d26cc1e4784329e3e52c17c411564609c5e87 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sat, 21 May 2016 23:01:45 +0200 Subject: [PATCH] duplicate debug-enable to get debug-output from parse_config --- tsstats/__main__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tsstats/__main__.py b/tsstats/__main__.py index 9165668..4ebf4fe 100644 --- a/tsstats/__main__.py +++ b/tsstats/__main__.py @@ -39,14 +39,16 @@ def cli(): def main(config=None, idmap=None, log=None, output=None, debug=False): + if debug: + logger.setLevel(logging.DEBUG) + if config: config = abspath(config) if not exists(config): logger.fatal('config not found (%s)', config) idmap, log, output, debug = parse_config(config) - - if debug: - logger.setLevel(logging.DEBUG) + if debug: + logger.setLevel(logging.DEBUG) if idmap: idmap = abspath(idmap)