Skip to content

Commit

Permalink
Configure sentry logging integration for ERROR logs only (#559)
Browse files Browse the repository at this point in the history
Setting this to WARNING causes to many extraneous logs to be reported
as issues in Sentry. `rio_tiler` in particular is very noisy, and it's
difficult to calibrate things because we have no control over the source
data its processing.
  • Loading branch information
mvandenburgh authored Nov 25, 2024
1 parent fab31c3 commit 040022d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdwatch/core/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def ready(self) -> None:
environment=settings.SENTRY_ENVIRONMENT,
release=settings.SENTRY_RELEASE,
integrations=[
LoggingIntegration(level=logging.INFO, event_level=logging.WARNING),
LoggingIntegration(level=logging.INFO, event_level=logging.ERROR),
DjangoIntegration(),
CeleryIntegration(),
],
Expand Down

0 comments on commit 040022d

Please sign in to comment.