[Neo-report] r2700 jm - /trunk/neo/lib/connection.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 7 15:02:15 CEST 2011
Author: jm
Date: Thu Apr 7 15:02:15 2011
New Revision: 2700
Log:
logs: show handler used by connections
To avoid too long lines, 'closed' value is displayed as int instead of boolean.
Modified:
trunk/neo/lib/connection.py
Modified: trunk/neo/lib/connection.py
==============================================================================
--- trunk/neo/lib/connection.py [iso-8859-1] (original)
+++ trunk/neo/lib/connection.py [iso-8859-1] Thu Apr 7 15:02:15 2011
@@ -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),
)
More information about the Neo-report
mailing list