duplicate debug-enable to get debug-output from parse_config
This commit is contained in:
parent
c094edb6e9
commit
eb9d26cc1e
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue