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): ...@@ -58,7 +58,7 @@ class ConnectionPool(object):
try: try:
if conn.getConnector() is None: if conn.getConnector() is None:
# This happens, if a connection could not be established. # 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 return None
p = Packets.RequestIdentification(NodeTypes.CLIENT, p = Packets.RequestIdentification(NodeTypes.CLIENT,
...@@ -71,14 +71,14 @@ class ConnectionPool(object): ...@@ -71,14 +71,14 @@ class ConnectionPool(object):
app._waitMessage(conn, msg_id, app._waitMessage(conn, msg_id,
handler=app.storage_bootstrap_handler) handler=app.storage_bootstrap_handler)
except ConnectionClosed: except ConnectionClosed:
logging.error('Connection to storage node %s failed', node) logging.error('Connection to %r failed', node)
return None return None
if app.isNodeReady(): if app.isNodeReady():
logging.info('connected to storage node %s', node) logging.info('Connected %r', node)
return conn return conn
else: else:
logging.info('Storage node %s not ready', node) logging.info('%r not ready', node)
return None return None
@profiler_decorator @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