summaryrefslogtreecommitdiff
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-03-23 11:18:45 +0000
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-03-23 11:18:45 +0000
commit98f57669cbdcd3e44073704656e12ffa23ea4a70 (patch)
treeb2c57910902a199e7f370b703722f36a7924cda0 /Lib/logging
parent90fa8e113ab6a6b0881c3b139f7622edb590452c (diff)
downloadcpython-98f57669cbdcd3e44073704656e12ffa23ea4a70.tar.gz
Issue #17521: Corrected non-enabling of logger following two calls to fileConfig().
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py
index 38b21e6b1e..560ca379a3 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"""