diff options
author | 2013-03-23 11:22:00 +0000 | |
---|---|---|
committer | 2013-03-23 11:22:00 +0000 | |
commit | 9b862b9d6679ed0de6dfeba158b417d79d4d6ed1 (patch) | |
tree | ae203f99b6a7c55a14d53f905ecfc973ece0c650 /Lib/logging/config.py | |
parent | Merged Misc/NEWS update for #17508. (diff) | |
parent | Issue #17521: Corrected non-enabling of logger following two calls to fileCon... (diff) | |
download | cpython-9b862b9d6679ed0de6dfeba158b417d79d4d6ed1.tar.gz cpython-9b862b9d6679ed0de6dfeba158b417d79d4d6ed1.tar.bz2 cpython-9b862b9d6679ed0de6dfeba158b417d79d4d6ed1.zip |
Issue #17521: Merged fix from 3.2.
Diffstat (limited to 'Lib/logging/config.py')
-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 0cce7102c10..11e79a26218 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -172,8 +172,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""" |