reset logging level after parsing all configs

This commit is contained in:
Martin A. Brown 2016-03-03 14:03:38 -08:00
parent 7359af070d
commit c8f489ef5d
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ def run(argv):
tag = 'ldptool'
config, args = collectconfiguration(tag, argv)
# -- and reset the loglevel (after reading envar, and config)
logging.getLogger().setLevel(config.loglevel)
logger.debug("Received the following configuration:")
for param, value in sorted(vars(config).items()):
logger.debug(" %s = %r", param, value)