remove debug message for getpeername failure

This commit is contained in:
Mark Heiges 2020-05-09 15:42:37 -04:00 committed by Brian May
parent 534ad8dfed
commit 6e19496fb7
2 changed files with 0 additions and 2 deletions

View File

@ -429,7 +429,6 @@ class Method(BaseMethod):
except socket.error:
_, e = sys.exc_info()[:2]
if e.args[0] == errno.EINVAL:
debug2("get_tcp_dstip error: sock.getpeername() %s\nsocket is probably closed.\n" % e)
return sock.getsockname()
proxy = sock.getsockname()

View File

@ -97,7 +97,6 @@ def _try_peername(sock):
except socket.error:
_, e = sys.exc_info()[:2]
if e.args[0] == errno.EINVAL:
debug2("_try_peername error: sock.getpeername() %s\nsocket is probably closed.\n" % e)
pass
elif e.args[0] not in (errno.ENOTCONN, errno.ENOTSOCK):
raise