mirror of https://github.com/python/cpython
Fixed bug in fileConfig() which failed to clear logging._handlerList
This commit is contained in:
parent
4ef256cab0
commit
cea4bf092d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue