From: Vinay Sajip Date: Fri, 30 Jun 2006 00:13:08 +0000 (+0000) Subject: Fixed bug in fileConfig() which failed to clear logging._handlerList X-Git-Tag: v2.5b2~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cea4bf092d8503fe03296ce0afd835fe9e9a4245;p=python Fixed bug in fileConfig() which failed to clear logging._handlerList --- diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 5adfe4dd21..511e65937e 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -79,6 +79,7 @@ def fileConfig(fname, defaults=None): logging._acquireLock() try: logging._handlers.clear() + logging._handlerList = [] # Handlers add themselves to logging._handlers handlers = _install_handlers(cp, formatters) _install_loggers(cp, handlers)