From 741e0bb5f46588ad71d3ac940a430e46e8d77df1 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Thu, 11 Jan 2007 20:26:05 +0000 Subject: Fixed bug in fileConfig where _handlerList was not being cleared. (SF #1632328) --- Lib/logging/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 81ef328..d57fa37 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -97,6 +97,7 @@ def fileConfig(fname, defaults=None): try: #first, lose the existing handlers... logging._handlers.clear() + del logging._handlerList[:] #now set up the new ones... hlist = cp.get("handlers", "keys") if len(hlist): -- cgit v0.12