From 5e77129916c5cc30f94360e889da60dc3f358c3d Mon Sep 17 00:00:00 2001 From: Cameron Hyde Date: Wed, 9 Oct 2024 06:00:18 +1000 Subject: [PATCH] Set sentry logging to ERROR level --- webapp/webapp/settings/prod.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp/webapp/settings/prod.py b/webapp/webapp/settings/prod.py index bee1d9f..a888310 100644 --- a/webapp/webapp/settings/prod.py +++ b/webapp/webapp/settings/prod.py @@ -1,6 +1,9 @@ +# flake8: noqa + """Settings for production.""" import os +import logging import sentry_sdk from .base import * @@ -71,3 +74,4 @@ # of transactions for tracing. traces_sample_rate=1.0, ) +logging.getLogger('sentry_sdk').setLevel(logging.ERROR)