@@ -108,6 +108,7 @@ def _set_environment_connection_list(self, connections: []): # type: ignore
108108
109109 def _open_connections (self , reconnect_handlers : bool = False ) -> None :
110110
111+ logger .debug ("inside connection._open_connections creating connection" )
111112 if self ._recovery_configuration .active_recovery is False :
112113 self ._conn = BlockingConnection (
113114 url = self ._addr ,
@@ -123,7 +124,7 @@ def _open_connections(self, reconnect_handlers: bool = False) -> None:
123124 )
124125
125126 if reconnect_handlers is True :
126-
127+ logger . debug ( "reconnecting managements, publishers and consumers handlers" )
127128 for i , management in enumerate (self ._managements ):
128129 # Update the broken connection and sender in the management
129130 self ._managements [i ]._update_connection (self ._conn )
@@ -206,10 +207,6 @@ def _win_store_to_cert(
206207 typing_extensions .assert_never (store )
207208 return ca_cert
208209
209- def _open (self ) -> None :
210- self ._management = Management (self ._conn )
211- self ._management .open ()
212-
213210 def management (self ) -> Management :
214211 """
215212 Get the management interface for this connection.
@@ -329,7 +326,7 @@ def _on_disconnection(self) -> None:
329326
330327 except ConnectionException as e :
331328 base_delay *= 2
332- logger .debug (
329+ logger .error (
333330 "Reconnection attempt failed" ,
334331 "attempt" ,
335332 attempt ,
@@ -338,7 +335,7 @@ def _on_disconnection(self) -> None:
338335 )
339336 # maximum attempts reached without establishing a connection
340337 if attempt == self ._recovery_configuration .MaxReconnectAttempts - 1 :
341- logger .debug ("Not able to reconnect" )
338+ logger .error ("Not able to reconnect" )
342339 raise ConnectionException
343340 else :
344341 continue
0 commit comments