mirror of
https://github.com/python/cpython.git
synced 2025-12-07 17:57:56 +00:00
Fixed bug in fileConfig() which failed to clear logging._handlerList
This commit is contained in:
parent
4ef256cab0
commit
cea4bf092d
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue