From 7eb2fb09ef708f9824010b916dee5d18b163d047 Mon Sep 17 00:00:00 2001 From: Stuart Gathman Date: Mon, 6 Jun 2005 18:24:59 +0000 Subject: [PATCH] Properly log exceptions from pydspam --- bms.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bms.py b/bms.py index 000d1b4..b88453b 100644 --- a/bms.py +++ b/bms.py @@ -1,6 +1,9 @@ #!/usr/bin/env python # A simple milter that has grown quite a bit. # $Log$ +# Revision 1.7 2005/06/04 19:41:16 customdesigned +# Fix bugs from testing RPM +# # Revision 1.6 2005/06/03 04:57:05 customdesigned # Organize config reader by section. Create defang section. # @@ -206,6 +209,7 @@ import mime import email.Errors import Milter import tempfile +import traceback import ConfigParser import time import re @@ -1014,7 +1018,8 @@ class bmsMilter(Milter.Milter): self.fp = StringIO.StringIO(txt) modified = True except Exception,x: - print x + self.log("check_spam:",x) + traceback.print_exc() # screen if no recipients are dspam_users if not modified and dspam_screener and not self.internal_connection \ and self.dspam: