From 040022dd0d03182d4371abc5853c6edd922ed2e8 Mon Sep 17 00:00:00 2001 From: Mike VanDenburgh <37340715+mvandenburgh@users.noreply.github.com> Date: Mon, 25 Nov 2024 12:02:58 -0500 Subject: [PATCH] Configure sentry logging integration for ERROR logs only (#559) 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. --- rdwatch/core/apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdwatch/core/apps.py b/rdwatch/core/apps.py index 2952006dc..09533396f 100644 --- a/rdwatch/core/apps.py +++ b/rdwatch/core/apps.py @@ -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(), ],