Commit 3ac8eab4 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Don't catch UnexpectedPacketError.

Packet logger returns None is not implemented.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1519 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 65d90cfd
...@@ -44,11 +44,7 @@ class PacketLogger(EventHandler): ...@@ -44,11 +44,7 @@ class PacketLogger(EventHandler):
except PacketMalformedError: except PacketMalformedError:
logging.warning("Can't decode packet for logging") logging.warning("Can't decode packet for logging")
return return
try:
log_message = logger(conn, packet, *args) log_message = logger(conn, packet, *args)
except UnexpectedPacketError:
logging.warning('No logger implemented for packet' % klass)
return
if log_message is not None: if log_message is not None:
logging.debug('#0x%08x %s', packet.getId(), log_message) logging.debug('#0x%08x %s', packet.getId(), log_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