duplicate debug-enable to get debug-output from parse_config

This commit is contained in:
Thor77 2016-05-21 23:01:45 +02:00
parent c094edb6e9
commit eb9d26cc1e
1 changed files with 5 additions and 3 deletions

View File

@ -39,12 +39,14 @@ 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)