Don't error log ConnectionExceptions during handshake
This commit is contained in:
@@ -220,8 +220,14 @@ class Connection(object):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if not isinstance(options_response, SupportedMessage):
|
if not isinstance(options_response, SupportedMessage):
|
||||||
log.error("Did not get expected SupportedMessage response; instead, got: %s", options_response)
|
if isinstance(options_response, ConnectionException):
|
||||||
raise ConnectionException("Did not get expected SupportedMessage response; instead, got: %s" % (options_response,))
|
raise options_response
|
||||||
|
else:
|
||||||
|
log.error("Did not get expected SupportedMessage response; " \
|
||||||
|
"instead, got: %s", options_response)
|
||||||
|
raise ConnectionException("Did not get expected SupportedMessage " \
|
||||||
|
"response; instead, got: %s" \
|
||||||
|
% (options_response,))
|
||||||
|
|
||||||
log.debug("Received options response on new connection (%s) from %s",
|
log.debug("Received options response on new connection (%s) from %s",
|
||||||
id(self), self.host)
|
id(self), self.host)
|
||||||
|
|||||||
Reference in New Issue
Block a user