Commit 366205da authored by Grégory Wisniewski's avatar Grégory Wisniewski

Explode tuple before give it's content to logging method.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1560 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 44a4697b
...@@ -128,7 +128,7 @@ class ClientElectionHandler(ElectionHandler): ...@@ -128,7 +128,7 @@ class ClientElectionHandler(ElectionHandler):
node = app.nm.getByAddress(conn.getAddress()) node = app.nm.getByAddress(conn.getAddress())
if node_type != NodeTypes.MASTER: if node_type != NodeTypes.MASTER:
# The peer is not a master node! # The peer is not a master node!
logging.error('%s:%d is not a master node', conn.getAddress()) logging.error('%s:%d is not a master node', *conn.getAddress())
app.nm.remove(node) app.nm.remove(node)
app.negotiating_master_node_set.discard(node.getAddress()) app.negotiating_master_node_set.discard(node.getAddress())
conn.close() conn.close()
......
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