Skip to content
Snippets Groups Projects
Commit cd34cd06 authored by Tulir Asokan's avatar Tulir Asokan :cat2:
Browse files

Don't send listen error notice when temporary_disconnect_notices is false and...

Don't send listen error notice when temporary_disconnect_notices is false and refresh_on_reconnection_fail is true
parent 73524515
No related branches found
No related tags found
Loading
...@@ -464,7 +464,8 @@ class User(BaseUser): ...@@ -464,7 +464,8 @@ class User(BaseUser):
else "Failed to connect to") else "Failed to connect to")
message = f"{event} Facebook Messenger: {e}. {next_action}" message = f"{event} Facebook Messenger: {e}. {next_action}"
self.log.warning(message) self.log.warning(message)
await self.send_bridge_notice(message, important=not refresh) if not refresh or self.temp_disconnect_notices:
await self.send_bridge_notice(message, important=not refresh)
if refresh: if refresh:
self._prev_reconnect_fail_refresh = time.monotonic() self._prev_reconnect_fail_refresh = time.monotonic()
self.loop.create_task(self.try_refresh()) self.loop.create_task(self.try_refresh())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment