Commit 9b4ca06b authored by Grégory Wisniewski's avatar Grégory Wisniewski

Clean log messages.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2133 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 3bc99a61
......@@ -58,7 +58,7 @@ class ConnectionPool(object):
try:
if conn.getConnector() is None:
# This happens, if a connection could not be established.
logging.error('Connection to storage node %s failed', node)
logging.error('Connection to %r failed', node)
return None
p = Packets.RequestIdentification(NodeTypes.CLIENT,
......@@ -71,14 +71,14 @@ class ConnectionPool(object):
app._waitMessage(conn, msg_id,
handler=app.storage_bootstrap_handler)
except ConnectionClosed:
logging.error('Connection to storage node %s failed', node)
logging.error('Connection to %r failed', node)
return None
if app.isNodeReady():
logging.info('connected to storage node %s', node)
logging.info('Connected %r', node)
return conn
else:
logging.info('Storage node %s not ready', node)
logging.info('%r not ready', node)
return None
@profiler_decorator
......
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