summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2006-06-30 00:13:08 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2006-06-30 00:13:08 (GMT)
commitcea4bf092d8503fe03296ce0afd835fe9e9a4245 (patch)
treea3de6937a2df16703aad3ae3bc5882ae72592702 /Lib/logging
parent4ef256cab0b55355b57623d7c5b2594dee3f5b8b (diff)
downloadcpython-cea4bf092d8503fe03296ce0afd835fe9e9a4245.zip
cpython-cea4bf092d8503fe03296ce0afd835fe9e9a4245.tar.gz
cpython-cea4bf092d8503fe03296ce0afd835fe9e9a4245.tar.bz2
Fixed bug in fileConfig() which failed to clear logging._handlerList
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py
index 5adfe4d..511e659 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)