Commit c9a147bf authored by Vincent Pelletier's avatar Vincent Pelletier

Only emit log line when packet is actually processed, not when it's received.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@700 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 5610ab92
......@@ -232,9 +232,6 @@ class Connection(BaseConnection):
except KeyError:
pass
logging.debug('analyse #0x%04x %-30s from %s (%s:%d)', packet.getId(),
packet.getType(), dump(self.uuid), *self.getAddress())
try:
self._queue.append(packet)
finally:
......@@ -262,6 +259,8 @@ class Connection(BaseConnection):
"""
Process a pending packet.
"""
logging.debug('analyse #0x%04x %-30s from %s (%s:%d)', packet.getId(),
packet.getType(), dump(self.uuid), *self.getAddress())
self.handler.packetReceived(self, self._dequeue())
def pending(self):
......
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