Skip to content

Commit

Permalink
Merge pull request #492 from ably/log-state-change-reason
Browse files Browse the repository at this point in the history
refactor(ConnectionManager): log reason for all state changes
  • Loading branch information
owenpearson authored May 3, 2023
2 parents d7413d5 + 2c203e6 commit 04eb1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ably/realtime/connectionmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04eb1c3

Please sign in to comment.