From 2c203e676e0710dc7b5a8e1866e1e97b97cc70f7 Mon Sep 17 00:00:00 2001 From: Owen Pearson Date: Wed, 3 May 2023 14:14:52 +0100 Subject: [PATCH] refactor(ConnectionManager): log reason for all state changes --- ably/realtime/connectionmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ably/realtime/connectionmanager.py b/ably/realtime/connectionmanager.py index 8696b8cd..e31ae25e 100644 --- a/ably/realtime/connectionmanager.py +++ b/ably/realtime/connectionmanager.py @@ -44,7 +44,7 @@ def __init__(self, realtime: AblyRealtime, initial_state): def enact_state_change(self, state: ConnectionState, reason: Optional[AblyException] = None) -> None: current_state = self.__state - log.info(f'ConnectionManager.enact_state_change(): {current_state} -> {state}') + log.info(f'ConnectionManager.enact_state_change(): {current_state} -> {state}; reason = {reason}') self.__state = state if reason: self.__error_reason = reason