duplicate debug-enable to get debug-output from parse_config
This commit is contained in:
parent
c094edb6e9
commit
eb9d26cc1e
|
@ -39,14 +39,16 @@ def cli():
|
||||||
|
|
||||||
|
|
||||||
def main(config=None, idmap=None, log=None, output=None, debug=False):
|
def main(config=None, idmap=None, log=None, output=None, debug=False):
|
||||||
|
if debug:
|
||||||
|
logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
if config:
|
if config:
|
||||||
config = abspath(config)
|
config = abspath(config)
|
||||||
if not exists(config):
|
if not exists(config):
|
||||||
logger.fatal('config not found (%s)', config)
|
logger.fatal('config not found (%s)', config)
|
||||||
idmap, log, output, debug = parse_config(config)
|
idmap, log, output, debug = parse_config(config)
|
||||||
|
if debug:
|
||||||
if debug:
|
logger.setLevel(logging.DEBUG)
|
||||||
logger.setLevel(logging.DEBUG)
|
|
||||||
|
|
||||||
if idmap:
|
if idmap:
|
||||||
idmap = abspath(idmap)
|
idmap = abspath(idmap)
|
||||||
|
|
Loading…
Reference in New Issue