[ mailman-Patches-1537408 ] Log error on screwed-up template
Patches item #1537408, was opened at 2006-08-09 16:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1537408&group_id=103 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: None Group: Mailman 2.1 Status: Open Resolution: None Priority: 5 Submitted By: Thijs Kinkhorst (kink) Assigned to: Nobody/Anonymous (nobody) Summary: Log error on screwed-up template Initial Comment: Hello! Bob Tanner supplied us with the following patch to add logging to the code that handles really "screwed up templates" so the admin can more easily see what has gone wrong. Please consider, thanks! Thijs --- HyperArch.py 2003-12-26 14:41:30.000000000 -0600 +++ HyperArch.py-bob 2005-11-23 03:19:13.000000000 -0600 @@ -217,8 +217,9 @@ Utils.GetCharSet(lang), 'replace') text = sdict.interpolate(utemplate) - except (TypeError, ValueError): + except (TypeError, ValueError), e: # The template is really screwed up + syslog('error', 'The template is really screwed up: %s\n', e) pass # Make sure the text is in the given character set, or html-ify any # bogus # characters. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1537408&group_id=103
participants (1)
-
SourceForge.net