From fdc3d1c457808203e3562ead43de2d319ac8d87b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 14 Jan 2022 07:39:25 -0500 Subject: [PATCH] Broaden scope of logging issues with connecting to a leader. Notably, certificate mismatch should be caught. --- confluent_server/confluent/collective/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/collective/manager.py b/confluent_server/confluent/collective/manager.py index 787aa79c..7e1584f8 100644 --- a/confluent_server/confluent/collective/manager.py +++ b/confluent_server/confluent/collective/manager.py @@ -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'})