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:
parent
8d5d8ef5ed
commit
fdc3d1c457
@ -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'})
|
||||
|
Loading…
x
Reference in New Issue
Block a user