Fix duplicate verbose logging

This commit is contained in:
Tim Van Baak 2020-01-13 11:48:52 -08:00
parent 02871798a6
commit 5d042326e9

View File

@ -42,7 +42,7 @@ def init_logging(args, logging_config):
# Apply any commandline settings to what was defined in the config file
handlers = cfg['loggers']['amanuensis']['handlers']
if args.verbose:
if 'cli-basic' in handlers:
if 'cli_basic' in handlers:
handlers.remove('cli_basic')
handlers.append('cli_verbose')
if args.log_file: