Commit 59abb90d authored by Vincent Pelletier's avatar Vincent Pelletier

Increase verbosity a bit.

parent 80038d2f
......@@ -103,7 +103,7 @@ class Node(object):
Define the connection that is currently available to this node.
"""
assert connection is not None
assert self._connection is None
assert self._connection is None, attributeTracker.whoSet(self, '_connection')
self._connection = connection
connection.setOnClose(self.onConnectionClosed)
self._manager._updateIdentified(self)
......@@ -128,11 +128,12 @@ class Node(object):
return self._connection is not None and self._uuid is not None
def __repr__(self):
return '<%s(uuid=%s, address=%s, state=%s) at %x>' % (
return '<%s(uuid=%s, address=%s, state=%s, connection=%r) at %x>' % (
self.__class__.__name__,
dump(self._uuid),
self._address,
self._state,
self._connection,
id(self),
)
......
......@@ -37,7 +37,7 @@ class ClientElectionHandler(MasterHandler):
node = self.app.nm.getByAddress(addr)
assert node is not None, (dump(self.app.uuid), addr)
assert node.isUnknown(), (dump(self.app.uuid), node.whoSetState(),
node.getState())
node)
# connection never success, node is still in unknown state
self.app.negotiating_master_node_set.discard(addr)
super(ClientElectionHandler, self).connectionFailed(conn)
......
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