Skip to content

Commit 4426b1a

Browse files
authored
Merge pull request #919 from allthingslinux/917-change-error-to-info
fix(sentry): change log level for bot disconnection to info
2 parents 1afca03 + 7145055 commit 4426b1a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tux/bot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,10 @@ async def on_disconnect(self) -> None:
205205
if sentry_sdk.is_initialized():
206206
with sentry_sdk.push_scope() as scope:
207207
scope.set_tag("event_type", "disconnect")
208-
scope.set_level("warning")
209-
sentry_sdk.capture_message("Bot disconnected from Discord")
208+
scope.set_level("info")
209+
sentry_sdk.capture_message(
210+
"Bot disconnected from Discord, this happens sometimes and is fine as long as it's not happening too often",
211+
)
210212

211213
# --- Sentry Transaction Tracking ---
212214

0 commit comments

Comments
 (0)