2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-14 01:29:23 +00:00

Reduce trace activity around common connectivity issue

If the target has a resolution or other common socket issues,
do not make large trace logs.
This commit is contained in:
Jarrod Johnson 2020-07-29 08:49:42 -04:00
parent 56a6f24350
commit c75a433ff8

View File

@ -419,7 +419,7 @@ class ConsoleHandler(object):
if not self.reconnect:
self.reconnect = eventlet.spawn_after(retrytime, self._connect)
return
except exc.TargetEndpointUnreachable:
except (exc.TargetEndpointUnreachable, socket.gaierror) as se:
self.clearbuffer()
self.error = 'unreachable'
self.connectstate = 'unconnected'