Commit cea4bf09 authored by Vinay Sajip's avatar Vinay Sajip

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

parent 4ef256ca
...@@ -79,6 +79,7 @@ def fileConfig(fname, defaults=None): ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment