cfg.add_argument(
'--logging_clear_preexisting_handlers',
action=argparse_utils.ActionNoYes,
- default=False,
+ default=True,
help=(
'Should logging code clear preexisting global logging handlers and thus insist that is ' +
'alone can add handlers. Use this to work around annoying modules that insert global ' +
f'Initialized global logging; default logging level is {level_name}.'
)
if config.config['logging_clear_preexisting_handlers'] and preexisting_handlers_count > 0:
- msg = 'Logging cleared {preexisting_handlers_count} global handlers (--logging_clear_preexisting_handlers)'
+ msg = f'Logging cleared {preexisting_handlers_count} global handlers (--logging_clear_preexisting_handlers)'
logger.warning(msg)
logger.debug(f'Logging format specification is "{fmt}"')
if config.config['logging_debug_threads']: