Fixed bug in fileConfig() which failed to clear logging._handlerList

This commit is contained in:
Vinay Sajip 2006-06-30 00:13:08 +00:00
parent 4ef256cab0
commit cea4bf092d
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ def fileConfig(fname, defaults=None):
logging._acquireLock() logging._acquireLock()
try: try:
logging._handlers.clear() logging._handlers.clear()
logging._handlerList = []
# Handlers add themselves to logging._handlers # Handlers add themselves to logging._handlers
handlers = _install_handlers(cp, formatters) handlers = _install_handlers(cp, formatters)
_install_loggers(cp, handlers) _install_loggers(cp, handlers)