Commit 25ca11ce authored by Julien Muchembled's avatar Julien Muchembled

logs: fix packet names of responses

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

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2726 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 49962b18
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment