Skip to content

Commit

Permalink
Make sentry event level configurable and use error by default (#2243)
Browse files Browse the repository at this point in the history
Co-authored-by: Vignesh Hari <[email protected]>
  • Loading branch information
sainak and vigneshhari authored Jun 5, 2024
1 parent 396e7ed commit 8b160e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/settings/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@
traces_sample_rate=env.float("SENTRY_TRACES_SAMPLE_RATE", default=0),
profiles_sample_rate=env.float("SENTRY_PROFILES_SAMPLE_RATE", default=0),
integrations=[
LoggingIntegration(event_level=logging.WARNING),
LoggingIntegration(
event_level=env.int("SENTRY_EVENT_LEVEL", default=logging.ERROR)
),
DjangoIntegration(),
CeleryIntegration(monitor_beat_tasks=True),
RedisIntegration(),
Expand Down

0 comments on commit 8b160e9

Please sign in to comment.