[ python-Bugs-1534765 ] logging's fileConfig causes KeyError on shutdown
SourceForge.net
noreply at sourceforge.net
Fri Aug 4 21:58:04 CEST 2006
Bugs item #1534765, was opened at 2006-08-04 15:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1534765&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: Open
Resolution: None
Priority: 5
Submitted By: mdbeachy (mdbeachy)
Assigned to: Nobody/Anonymous (nobody)
Summary: logging's fileConfig causes KeyError on shutdown
Initial Comment:
If logging.config.fileConfig() is called after logging
handlers already exist, a KeyError is thrown in the
atexit call to logging.shutdown().
This looks like it's fixed in the 2.5 branch but since
I've bothered to figure out what was going on I'm
sending this in anyway. There still might be a 2.4.4,
right? (Also, my fix looks better than what was done
for 2.5, but I suppose the flush/close I added may not
be necessary.)
Attached is a demo and a patch against 2.4.3.
Thanks,
Mike
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1534765&group_id=5470
More information about the Python-bugs-list
mailing list