From cea4bf092d8503fe03296ce0afd835fe9e9a4245 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Fri, 30 Jun 2006 00:13:08 +0000 Subject: [PATCH] Fixed bug in fileConfig() which failed to clear logging._handlerList --- Lib/logging/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 5adfe4dd21d..511e65937e5 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)