[Neo-report] r2094 gregory - /trunk/neo/node.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 7 17:00:56 CEST 2010
Author: gregory
Date: Fri May 7 17:00:55 2010
New Revision: 2094
Log:
Use node's __repr__ for logging.
Modified:
trunk/neo/node.py
Modified: trunk/neo/node.py
==============================================================================
--- trunk/neo/node.py [iso-8859-1] (original)
+++ trunk/neo/node.py [iso-8859-1] Fri May 7 17:00:55 2010
@@ -448,8 +448,9 @@
if state == NodeStates.DOWN:
logging.debug('NOT creating node %s %s %s %s', *log_args)
else:
- logging.debug('creating node %s %s %s %s', *log_args)
- self._createNode(klass, address=addr, uuid=uuid, state=state)
+ node = self._createNode(klass, address=addr, uuid=uuid,
+ state=state)
+ logging.debug('creating node %r', node)
else:
assert isinstance(node, klass), 'node %r is not ' \
'of expected type: %r' % (node, klass)
More information about the Neo-report
mailing list