2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-14 03:37:49 +00:00

Broaden scope of logging issues with connecting to a leader.

Notably, certificate mismatch should be caught.
This commit is contained in:
Jarrod Johnson 2022-01-14 07:39:25 -05:00
parent 8d5d8ef5ed
commit fdc3d1c457

View File

@ -71,7 +71,7 @@ def connect_to_leader(cert=None, name=None, leader=None, remote=None):
'subsystem': 'collective'})
try:
remote = connect_to_collective(cert, leader, remote)
except socket.error as e:
except Exception as e:
log.log({'error': 'Collective connection attempt to {0} failed: {1}'
''.format(leader, str(e)),
'subsystem': 'collective'})