From 567eb51f10ed002dcc4c39d8ea0f387af5cddf66 Mon Sep 17 00:00:00 2001 From: Jurica Grgicevic Date: Wed, 24 Mar 2021 17:00:39 +0100 Subject: [PATCH] fix(sentry): suppress sentry events for bandit logger --- zoo/base/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zoo/base/settings.py b/zoo/base/settings.py index 77fc5270..132feaaf 100644 --- a/zoo/base/settings.py +++ b/zoo/base/settings.py @@ -11,7 +11,7 @@ import environ import sentry_sdk -from sentry_sdk.integrations.django import DjangoIntegration +from sentry_sdk.integrations.django import DjangoIntegration, ignore_logger from ..utils import _get_app_version from . import logs @@ -233,6 +233,7 @@ SENTRY_ORGANIZATION = env("ZOO_SENTRY_ORGANIZATION") SENTRY_API_KEY = env("ZOO_SENTRY_API_KEY") +ignore_logger("bandit.core.tester") sentry_sdk.init( integrations=[DjangoIntegration()], release=version,