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

zax at conuropsis.org zax at conuropsis.org
Mon Mar 20 15:04:13 CET 2006


Author: zax
Date: 2006-03-20 15:04:11 +0100 (Mon, 20 Mar 2006)
New Revision: 493

Modified:
   trunk/nymbaron/Server/Main.py
Log:
Additional debug messages during Create processing


Modified: trunk/nymbaron/Server/Main.py
===================================================================
--- trunk/nymbaron/Server/Main.py	2006-03-19 20:14:37 UTC (rev 492)
+++ trunk/nymbaron/Server/Main.py	2006-03-20 14:04:11 UTC (rev 493)
@@ -163,6 +163,7 @@
             raise MalformedControlMessage()
         com = comList[idx]
         for pnym in com.list:
+            logger.debug('Processing Create request for nym \"%s\".' % pnym)
             try:
                 nymUser = User.User(pnym, config, 1)
             except User.AlreadySuchUser:
@@ -181,9 +182,11 @@
                     return
                 else:
                     #it doesn't: we clean and continue
+                    logger.debug('Nym \"%s\" already attributed.' % pnym)
                     del nymUser
                     nymUser = None
             if nymUser is not None:
+                logger.debug('Nym \"%s\" is not attributed. Proceeding with Create request for it.' % pnym)
                 break
         if nymUser is None:
             #TODO send an Error message to the client when surbs become available?
@@ -229,6 +232,7 @@
             created = Message.Created()
             #TODO non empty challenge?
             created.fromData(nymUser.username, "")
+            logger.debug('Create request for nym \"%s\" succeeded.' % nymUser.username)
             nymUser.advanced_send(Message.buildMessage([created]))
     except MalformedControlMessage:
         #if you come here something went wrong during the account



More information about the Nym3-commit mailing list