[ python-Bugs-1534765 ] logging's fileConfig causes KeyError on shutdown

SourceForge.net noreply at sourceforge.net
Thu Jan 11 21:30:57 CET 2007


Bugs item #1534765, was opened at 2006-08-04 19:58
Message generated for change (Comment added) made by vsajip
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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: mdbeachy (mdbeachy)
Assigned to: Vinay Sajip (vsajip)
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

----------------------------------------------------------------------

>Comment By: Vinay Sajip (vsajip)
Date: 2007-01-11 20:30

Message:
Logged In: YES 
user_id=308438
Originator: NO

Fix for SF #1632328 should cover this - checked into release24-maint.

----------------------------------------------------------------------

Comment By: Matt Fleming (splitscreen)
Date: 2006-08-09 14:10

Message:
Logged In: YES 
user_id=1126061

Bug confirmed in release24-maint. Patch looks good to me,
although I think the developers prefer unified diffs, not
contextual, just to keep in mind for the future. And also, I
had to manually patch the Lib/logging/config.py file because
for some reason, the paths in your patch all use lowercase
letters.

Thanks for the patch.

----------------------------------------------------------------------

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