diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-03-23 11:18:45 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-03-23 11:18:45 (GMT) |
commit | 68b4cc87cd75822552914fb59f5bf53fe6c28202 (patch) | |
tree | e1ef437a8e25985704dbb0ba0a5d0c8147f5cd71 /Lib/logging | |
parent | a4cfd60f3d86d2cbaa864f83a41241800674bf15 (diff) | |
download | cpython-68b4cc87cd75822552914fb59f5bf53fe6c28202.zip cpython-68b4cc87cd75822552914fb59f5bf53fe6c28202.tar.gz cpython-68b4cc87cd75822552914fb59f5bf53fe6c28202.tar.bz2 |
Issue #17521: Corrected non-enabling of logger following two calls to fileConfig().
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 38b21e6..560ca37 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -175,8 +175,8 @@ def _handle_existing_loggers(existing, child_loggers, disable_existing): logger.level = logging.NOTSET logger.handlers = [] logger.propagate = True - elif disable_existing: - logger.disabled = True + else: + logger.disabled = disable_existing def _install_loggers(cp, handlers, disable_existing): """Create and install loggers""" |