This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: python-logging compatability with Zope.
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: georg.brandl, sf-robot, shookway, vinay.sajip
Priority: normal Keywords:

Created on 2006-12-13 03:02 by shookway, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python2.4-logging.patch shookway, 2006-12-13 03:02 Patch replaces _handlers dict and list with an ordered dict.
Messages (6)
msg30798 - (view) Author: Simon Hookway (shookway) Date: 2006-12-13 03:02
I'm using Zope2.8.x and python2.4.

On shutdown removing the handlers causes a KeyError because the new _handlersList is not correctly updated and thus has a now non-existant handler in it.

This double list/dict thing is a little cumbersome. I'm not sure either why it's a dict but i have replaced it with an OrderedDict so that old 2.3 logging behaviour works without modification.

See the included patch.
msg30799 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-12-15 08:06
I believe this was fixed in 2.5, but I could be mistaken.
msg30800 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2006-12-15 17:13
Yes, a fix was applied a while ago.
msg30801 - (view) Author: SourceForge Robot (sf-robot) Date: 2006-12-30 03:20
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
msg30802 - (view) Author: Simon Hookway (shookway) Date: 2007-02-11 23:57
"fixed in 2.5" -- that is the problem, why was this fix not rolled back to python2.4? I submit this patch for those of us out there still using 2.4 and likely to be using it for a while to come. 

Can we have it fixed in 2.4 please.
msg30803 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2007-02-16 18:27
The change was backported to the release24-maint branch some time ago - sorry for not making it clear.
History
Date User Action Args
2022-04-11 14:56:21adminsetgithub: 44334
2006-12-13 03:02:21shookwaycreate