Commit a100be9d authored by Vincent Pelletier's avatar Vincent Pelletier

Add prefixes to loging messages to make it easier to find error location.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@263 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 57ab3368
...@@ -40,7 +40,7 @@ class SocketConnector: ...@@ -40,7 +40,7 @@ class SocketConnector:
if m[0] == errno.EINPROGRESS: if m[0] == errno.EINPROGRESS:
raise ConnectorInProgressException raise ConnectorInProgressException
else: else:
logging.error('%s', m[1]) logging.error('makeClientConnection: %s', m[1])
raise raise
def makeListeningConnection(self, addr): def makeListeningConnection(self, addr):
...@@ -68,7 +68,7 @@ class SocketConnector: ...@@ -68,7 +68,7 @@ class SocketConnector:
if m[0] == errno.EAGAIN: if m[0] == errno.EAGAIN:
raise ConnectorTryAgainException raise ConnectorTryAgainException
else: else:
logging.error('%s', m[1]) logging.error('getNewConnection: %s', m[1])
raise raise
def shutdown(self): def shutdown(self):
...@@ -85,7 +85,7 @@ class SocketConnector: ...@@ -85,7 +85,7 @@ class SocketConnector:
if m[0] == errno.EAGAIN: if m[0] == errno.EAGAIN:
raise ConnectorTryAgainException raise ConnectorTryAgainException
else: else:
logging.error('%s', m[1]) logging.error('receive: %s', m[1])
raise raise
def send(self, msg): def send(self, msg):
...@@ -95,7 +95,7 @@ class SocketConnector: ...@@ -95,7 +95,7 @@ class SocketConnector:
if m[0] == errno.EAGAIN: if m[0] == errno.EAGAIN:
raise ConnectorTryAgainException raise ConnectorTryAgainException
else: else:
logging.error('%s', m[1]) logging.error('send: %s', m[1])
raise raise
......
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