[Nym3-commit] r498 - trunk/nymbaron/Server

zax at conuropsis.org zax at conuropsis.org
Tue Mar 21 14:45:18 CET 2006


Author: zax
Date: 2006-03-21 14:45:17 +0100 (Tue, 21 Mar 2006)
New Revision: 498

Modified:
   trunk/nymbaron/Server/Main.py
Log:
Additional debug logging during control message processing


Modified: trunk/nymbaron/Server/Main.py
===================================================================
--- trunk/nymbaron/Server/Main.py	2006-03-21 00:56:34 UTC (rev 497)
+++ trunk/nymbaron/Server/Main.py	2006-03-21 13:45:17 UTC (rev 498)
@@ -116,7 +116,7 @@
 
 def isMsgBinary(msg):
     """ This function returns True is the message is binary.  It
-    checks by checking what percentage of characters are non-textual.
+    checks by looking at what percentage of characters are non-textual.
     In practice, all chars in base64 should be text but we allow a little
     margin (20%) just to be on the safe side."""
     text_characters = "".join(map(chr, range(32, 127)) + list("\n\r\t\b"))
@@ -358,6 +358,7 @@
                         sys.exit(2)
                             
                 elif com.ct() == Message.CToSCODE['Summarize']:
+                    logger.debug("Control message is a Summarize request from %s" % h.nym)
                     comList = []
                     sendList = nymUser.prepareSummary(com.num, com.after)
                     mList = []
@@ -379,6 +380,7 @@
                         sys.exit(2)
 
                 elif com.ct() == Message.CToSCODE['Delete']:
+                    logger.debug("Control message is a Delete request from %s" % h.nym)
                     for mid in com.l:
                         nymUser.delete_msg(mid)
                 elif com.ct() == Message.CToSCODE['Policy']:



More information about the Nym3-commit mailing list