Skip to content

Commit 8548a62

Browse files
committed
Fix bug with log level
The intent here was to not notify Sentry until retries were exhausted, but logs at the "error" level triggered Sentry exceptions anyway. Downgrade the log level to Warning resolves that. Fixes: Sentry#THUNDERBIRD-ACCOUNTS-7Z
1 parent 294b3d4 commit 8548a62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/thunderbird_accounts/telemetry

src/thunderbird_accounts/telemetry/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def _retry_or_report(task, exc, message):
1919
Keeps transient PostHog/DB/Redis outages from spamming Sentry with one event
2020
per retry attempt while still surfacing persistent failures.
2121
"""
22-
logger.error(f'{message}: {exc}')
22+
logger.warning(f'{message}: {exc}')
2323
if task.request.retries >= task.max_retries:
2424
sentry_sdk.capture_exception(exc)
2525
raise task.retry(exc=exc)

0 commit comments

Comments
 (0)