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 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Mailman') 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() -- cgit v1.2.3