Bugs item #1534765, was opened at 2006-08-05 05:58 Message generated for change (Comment added) made by anthonybaxter 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: Anthony Baxter (anthonybaxter) Date: 2007-01-12 20:08 Message: Logged In: YES user_id=29957 Originator: NO Note, though, that there's no planned "next release" of 2.4. 2.4 is in "emergency security fix mode" - that is, unless someone finds a critical security problem, I don't plan to make further 2.4.x releases. If someone else wants to volunteer, of course, that's entirely fine. ---------------------------------------------------------------------- Comment By: Vinay Sajip (vsajip) Date: 2007-01-12 07: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-10 00: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 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com