mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +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()
|
||||
try:
|
||||
logging._handlers.clear()
|
||||
logging._handlerList = []
|
||||
# Handlers add themselves to logging._handlers
|
||||
handlers = _install_handlers(cp, formatters)
|
||||
_install_loggers(cp, handlers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue