Skip to content

Commit

Permalink
send better message when reconnecting to Signal fails
Browse files Browse the repository at this point in the history
  • Loading branch information
sumnerevans committed Jan 19, 2022
1 parent 987fc5b commit c535bff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mautrix_signal/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,12 @@ async def wait_report_transient_disconnect():
self._latest_non_transient_disconnect_state
and now > self._latest_non_transient_disconnect_state
):
asyncio.create_task(self.push_bridge_state(BridgeStateEvent.UNKNOWN_ERROR))
asyncio.create_task(
self.push_bridge_state(
BridgeStateEvent.UNKNOWN_ERROR,
message="Failed restore connection to Signal",
)
)
else:
self.log.info(
"New state since last TRANSIENT_DISCONNECT push. "
Expand Down

0 comments on commit c535bff

Please sign in to comment.