Don't log at ERROR when a conn closes during startup

This commit is contained in:
Tyler Hobbs
2014-04-24 15:21:42 -05:00
parent aa7d35d19c
commit ea6209db57
2 changed files with 8 additions and 0 deletions

View File

@@ -11,6 +11,11 @@ Bug Fixes
* Avoid handling a node coming up multiple times due to a reconnection attempt
succeeding close to the same time that an UP notification is pushed
Other
-----
* Don't log at ERROR when a connection is closed during the startup
communications
1.1.1
=====
April 16, 2014

View File

@@ -415,6 +415,9 @@ class Connection(object):
raise ConnectionException(
"Failed to initialize new connection to %s: %s"
% (self.host, startup_response.summary_msg()))
elif isinstance(startup_response, ConnectionShutdown):
log.debug("Connection to %s was closed during the startup handshake", (self.host))
raise startup_response
else:
msg = "Unexpected response during Connection setup: %r"
log.error(msg, startup_response)