[Neo-report] r2726 jm - /trunk/neo/lib/logger.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 21 10:57:22 CEST 2011


Author: jm
Date: Thu Apr 21 10:57:22 2011
New Revision: 2726

Log:
logs: fix packet names of responses

The contained the request name twice. Example:
  #0x00000000 AnswerPrimaryMasterPrimaryMaster  to  None (127.0.0.1:34804)

Modified:
    trunk/neo/lib/logger.py

Modified: trunk/neo/lib/logger.py
==============================================================================
--- trunk/neo/lib/logger.py [iso-8859-1] (original)
+++ trunk/neo/lib/logger.py [iso-8859-1] Thu Apr 21 10:57:22 2011
@@ -38,8 +38,6 @@ class PacketLogger(object):
         uuid = dump(conn.getUUID())
         ip, port = conn.getAddress()
         packet_name = packet.__class__.__name__
-        if packet.isResponse() and packet._request is not None:
-            packet_name += packet._request.__name__
         neo.lib.logging.debug('#0x%08x %-30s %s %s (%s:%d)', packet.getId(),
                 packet_name, direction, uuid, ip, port)
         # look for custom packet logger




More information about the Neo-report mailing list