Help save net neutrality! Learn more.
Close

#425 Log error on screwed-up template in archiver

Mailman 2.1
open
nobody
None
5
2008-06-07
2006-08-09
No

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.

Discussion

  • A.M. Kuchling

    A.M. Kuchling - 2008-06-07

    Logged In: YES
    user_id=11375
    Originator: NO

    I've attached a patch file including this change, but haven't actually tested the code with the patch yet.

    File Added: mailman-archiver-template.diff

     
  • A.M. Kuchling

    A.M. Kuchling - 2008-06-07
    • summary: Log error on screwed-up template --> Log error on screwed-up template in archiver
     

Log in to post a comment.