From 7ab4c486f8bb1df6650df0cdb0aac8506ea8d450 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Fri, 5 Mar 2010 13:09:41 -0800 Subject: Added a traceback to the log message produced when processing the digest.mbox throws an exception. --- Mailman/Handlers/ToDigest.py | 6 +++++- NEWS | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Mailman/Handlers/ToDigest.py b/Mailman/Handlers/ToDigest.py index d5f1622a..7e5c3427 100644 --- a/Mailman/Handlers/ToDigest.py +++ b/Mailman/Handlers/ToDigest.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2006 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2010 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -29,6 +29,7 @@ import os import re import copy import time +import traceback from types import ListType from cStringIO import StringIO @@ -100,6 +101,9 @@ def process(mlist, msg, msgdata): # Bare except is generally prohibited in Mailman, but we can't # forecast what exceptions can occur here. syslog('error', 'send_digests() failed: %s', errmsg) + s = StringIO() + traceback.print_exc(file=s) + syslog('error', s.getvalue()) mboxfp.close() diff --git a/NEWS b/NEWS index 5ee5bb91..054ee3d3 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,9 @@ Here is a history of user visible changes to Mailman. Bug Fixes and other patches + - Added a traceback to the log message produced when processing the + digest.mbox throws an exception. + - Added a urlhost argument to the MailList.MailList.Create() method to allow bin/newlist and the the create CGI to pass urlhost so the host will be correct in the listinfo link on the emptyarchive page. -- cgit v1.2.3