Commit 12180c04 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use node's __repr__ for logging.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2094 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7bff18e3
......@@ -448,8 +448,9 @@ class NodeManager(object):
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)
......
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