Commit ae101b47 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use hex instead of decimal for a packet type.

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