[Neo-report] r2703 jm - /trunk/neo/lib/handler.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 7 15:02:41 CEST 2011


Author: jm
Date: Thu Apr  7 15:02:41 2011
New Revision: 2703

Log:
logs: show source address/port when a connection is set up

Modified:
    trunk/neo/lib/handler.py

Modified: trunk/neo/lib/handler.py
==============================================================================
--- trunk/neo/lib/handler.py [iso-8859-1] (original)
+++ trunk/neo/lib/handler.py [iso-8859-1] Thu Apr  7 15:02:41 2011
@@ -96,7 +96,8 @@ class EventHandler(object):
 
     def connectionCompleted(self, conn):
         """Called when a connection is completed."""
-        neo.lib.logging.debug('connection completed for %r', conn)
+        neo.lib.logging.debug('connection completed for %r (from %s:%u)',
+                              conn, *conn.getConnector().getAddress())
 
     def connectionFailed(self, conn):
         """Called when a connection failed."""




More information about the Neo-report mailing list