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: http://git.ipfire.org/?a=commitdiff_plain;h=cea4bf092d8503fe03296ce0afd835fe9e9a4245;p=thirdparty%2FPython%2Fcpython.git Fixed bug in fileConfig() which failed to clear logging._handlerList --- diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 5adfe4dd21d8..511e65937e52 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)