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:
if m[0] == errno.EINPROGRESS:
raise ConnectorInProgressException
else:
logging.error('%s', m[1])
logging.error('makeClientConnection: %s', m[1])
raise
def makeListeningConnection(self, addr):
......@@ -68,7 +68,7 @@ class SocketConnector:
if m[0] == errno.EAGAIN:
raise ConnectorTryAgainException
else:
logging.error('%s', m[1])
logging.error('getNewConnection: %s', m[1])
raise
def shutdown(self):
......@@ -85,7 +85,7 @@ class SocketConnector:
if m[0] == errno.EAGAIN:
raise ConnectorTryAgainException
else:
logging.error('%s', m[1])
logging.error('receive: %s', m[1])
raise
def send(self, msg):
......@@ -95,7 +95,7 @@ class SocketConnector:
if m[0] == errno.EAGAIN:
raise ConnectorTryAgainException
else:
logging.error('%s', m[1])
logging.error('send: %s', m[1])
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