Commit dca42fc0 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Display packet name instead of integer value in generic handler


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@474 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e2b49374
......@@ -105,7 +105,7 @@ class EventHandler(object):
def handleUnexpectedPacket(self, conn, packet, message = None):
"""Handle an unexpected packet."""
if message is None:
message = 'unexpected packet type %x' % packet.getType()
message = 'unexpected packet type %s' % packet.getType()
else:
message = 'unexpected packet: ' + message
logging.info('%s', message)
......
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