Issue #17521: Corrected non-enabling of logger following two calls to fileConfig().

This commit is contained in:
Vinay Sajip 2013-03-23 11:18:45 +00:00
parent a4cfd60f3d
commit 68b4cc87cd
3 changed files with 37 additions and 4 deletions

View file

@ -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"""