gh-90195: Unset logger disabled flag when configuring it. (GH-96530)

This commit is contained in:
Vinay Sajip 2022-09-03 13:38:38 +01:00 committed by GitHub
parent e5823bf9b5
commit ac4ddab405
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View file

@ -869,6 +869,7 @@ class DictConfigurator(BaseConfigurator):
"""Configure a non-root logger from a dictionary."""
logger = logging.getLogger(name)
self.common_logger_config(logger, config, incremental)
logger.disabled = False
propagate = config.get('propagate', None)
if propagate is not None:
logger.propagate = propagate