[or-cvs] r18309: {bridgedb} Add more log messages on email handling. (bridgedb/trunk/lib/bridgedb)

nickm at seul.org nickm at seul.org
Wed Jan 28 21:04:06 UTC 2009


Author: nickm
Date: 2009-01-28 16:04:06 -0500 (Wed, 28 Jan 2009)
New Revision: 18309

Modified:
   bridgedb/trunk/lib/bridgedb/Server.py
Log:
Add more log messages on email handling.

Modified: bridgedb/trunk/lib/bridgedb/Server.py
===================================================================
--- bridgedb/trunk/lib/bridgedb/Server.py	2009-01-28 21:01:36 UTC (rev 18308)
+++ bridgedb/trunk/lib/bridgedb/Server.py	2009-01-28 21:04:06 UTC (rev 18309)
@@ -245,15 +245,17 @@
     body.write(EMAIL_MESSAGE_TEMPLATE % answer)
 
     f.seek(0)
+    logging.info("Email looks good; we should send an answer.")
     return clientAddr, f
 
 def replyToMail(lines, ctx):
     """Given a list of lines from an incoming email message, and a
        MailContext object, possibly send a reply.
     """
-    logging.info("Got a completed email; attempting to reply.")
+    logging.info("Got a completed email; deciding whether to reply.")
     sendToUser, response = getMailResponse(lines, ctx)
     if response is None:
+        logging.debug("getMailResponse said not to reply, so I won't.")
         return
     response.seek(0)
     d = Deferred()



More information about the tor-commits mailing list