diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2022-09-03 12:38:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-03 12:38:38 (GMT) |
commit | ac4ddab405a36bd0e2b86bcd147b3a647b734492 (patch) | |
tree | 5e6e7c8cea46cdeb9d63d50580b0b82dbccd736b /Lib/logging | |
parent | e5823bf9b594937290ddd3c0f3e42f5c534f58d1 (diff) | |
download | cpython-ac4ddab405a36bd0e2b86bcd147b3a647b734492.zip cpython-ac4ddab405a36bd0e2b86bcd147b3a647b734492.tar.gz cpython-ac4ddab405a36bd0e2b86bcd147b3a647b734492.tar.bz2 |
gh-90195: Unset logger disabled flag when configuring it. (GH-96530)
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/config.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 2b9d90c..7cd16c6 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -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 |