aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/ToDigest.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2010-03-05 13:09:41 -0800
committerMark Sapiro <mark@msapiro.net>2010-03-05 13:09:41 -0800
commit7ab4c486f8bb1df6650df0cdb0aac8506ea8d450 (patch)
tree2c2846a7ccc90ee0b7a54c3e46d922a463b3461b /Mailman/Handlers/ToDigest.py
parent136ceb7679d51fa50504bbcdbf09c224c188e2ec (diff)
downloadmailman2-7ab4c486f8bb1df6650df0cdb0aac8506ea8d450.tar.gz
mailman2-7ab4c486f8bb1df6650df0cdb0aac8506ea8d450.tar.xz
mailman2-7ab4c486f8bb1df6650df0cdb0aac8506ea8d450.zip
Added a traceback to the log message produced when processing the
digest.mbox throws an exception.
Diffstat (limited to '')
-rw-r--r--Mailman/Handlers/ToDigest.py6
1 files changed, 5 insertions, 1 deletions
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()