[ python-Bugs-1632328 ] logging.config.fileConfig doesn't clear logging._handlerList
SourceForge.net
noreply at sourceforge.net
Thu Jan 11 21:28:47 CET 2007
Bugs item #1632328, was opened at 2007-01-10 12:56
Message generated for change (Comment added) made by vsajip
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1632328&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Stefan H. Holek (shh42)
Assigned to: Vinay Sajip (vsajip)
Summary: logging.config.fileConfig doesn't clear logging._handlerList
Initial Comment:
logging.config.fileConfig resets logging._handlers but not logging._handlerList, resulting in tracebacks on shutdown.
e.g.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/local/python2.4/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/local/python2.4/lib/python2.4/logging/__init__.py", line 1333, in shutdown
h.close()
File "/usr/local/python2.4/lib/python2.4/logging/__init__.py", line 674, in close
del _handlers[self]
KeyError: <zope.testing.testrunner.NullHandler instance at 0x7dddf0>
AFAICT this is fixed in Python 2.5 but has not been backported. Zope cannot use 2.5 as of yet.
----------------------------------------------------------------------
>Comment By: Vinay Sajip (vsajip)
Date: 2007-01-11 20:28
Message:
Logged In: YES
user_id=308438
Originator: NO
Yes - fix checked into release24-maint.
----------------------------------------------------------------------
Comment By: Georg Brandl (gbrandl)
Date: 2007-01-11 12:27
Message:
Logged In: YES
user_id=849994
Originator: NO
Does a backport to 2.4 make sense?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1632328&group_id=5470
More information about the Python-bugs-list
mailing list