- logger.debug(f'Initialized logger; default logging level is {default_logging_level}.')
- if config.config['logging_clear_spammy_handlers'] and spammy_handlers > 0:
+ # At this point the logger is ready, handlers are set up,
+ # etc... so log about the logging configuration.
+
+ level_name = logging._levelToName.get(default_logging_level, str(default_logging_level))
+ logger.debug(
+ f'Initialized global logging; default logging level is {level_name}.'
+ )
+ if config.config['logging_clear_preexisting_handlers'] and preexisting_handlers_count > 0: