Commit e87f0d61 authored by Julien Muchembled's avatar Julien Muchembled

logs: show handler used by connections

To avoid too long lines, 'closed' value is displayed as int instead of boolean.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2700 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 21d83bd9
......@@ -334,11 +334,12 @@ class BaseConnection(object):
def __repr__(self):
address = self.addr and '%s:%d' % self.addr or '?'
return '<%s(uuid=%s, address=%s, closed=%s) at %x>' % (
return '<%s(uuid=%s, address=%s, closed=%s, handler=%s) at %x>' % (
self.__class__.__name__,
dump(self.getUUID()),
address,
self.isClosed(),
int(self.isClosed()),
self.getHandler(),
id(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