Skip to content
Snippets Groups Projects
Commit 7eb2fb09 authored by Stuart Gathman's avatar Stuart Gathman
Browse files

Properly log exceptions from pydspam

parent 07c56ce6
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python #!/usr/bin/env python
# A simple milter that has grown quite a bit. # A simple milter that has grown quite a bit.
# $Log$ # $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 # Revision 1.6 2005/06/03 04:57:05 customdesigned
# Organize config reader by section. Create defang section. # Organize config reader by section. Create defang section.
# #
...@@ -206,6 +209,7 @@ import mime ...@@ -206,6 +209,7 @@ import mime
import email.Errors import email.Errors
import Milter import Milter
import tempfile import tempfile
import traceback
import ConfigParser import ConfigParser
import time import time
import re import re
...@@ -1014,7 +1018,8 @@ class bmsMilter(Milter.Milter): ...@@ -1014,7 +1018,8 @@ class bmsMilter(Milter.Milter):
self.fp = StringIO.StringIO(txt) self.fp = StringIO.StringIO(txt)
modified = True modified = True
except Exception,x: except Exception,x:
print x self.log("check_spam:",x)
traceback.print_exc()
# screen if no recipients are dspam_users # screen if no recipients are dspam_users
if not modified and dspam_screener and not self.internal_connection \ if not modified and dspam_screener and not self.internal_connection \
and self.dspam: and self.dspam:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment