Commit 6445101c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Remove a logging message and the related try/finally block.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1520 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 3ac8eab4
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
import socket import socket
import errno import errno
from neo import logging
# Global connector registry. # Global connector registry.
# Fill by calling registerConnectorHandler. # Fill by calling registerConnectorHandler.
...@@ -63,18 +62,14 @@ class SocketConnector: ...@@ -63,18 +62,14 @@ class SocketConnector:
self.is_closed = False self.is_closed = False
self.remote_addr = addr self.remote_addr = addr
try: try:
try: self.socket.connect(addr)
self.socket.connect(addr) except socket.error, (err, errmsg):
except socket.error, (err, errmsg): if err == errno.EINPROGRESS:
if err == errno.EINPROGRESS: raise ConnectorInProgressException
raise ConnectorInProgressException if err == errno.ECONNREFUSED:
if err == errno.ECONNREFUSED: raise ConnectorConnectionRefusedException
raise ConnectorConnectionRefusedException raise ConnectorException, 'makeClientConnection to %s failed:' \
raise ConnectorException, 'makeClientConnection to %s failed:' \ ' %s:%s' % (addr, err, errmsg)
' %s:%s' % (addr, err, errmsg)
finally:
logging.debug('%r connecting to %r', self.socket.getsockname(),
addr)
def makeListeningConnection(self, addr): def makeListeningConnection(self, addr):
self.is_closed = False self.is_closed = False
......
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