Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Commit 567eb51

Browse files
gjuro87aexvir
authored andcommitted
fix(sentry): suppress sentry events for bandit logger
1 parent 923b2b5 commit 567eb51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zoo/base/settings.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import environ
1313
import sentry_sdk
14-
from sentry_sdk.integrations.django import DjangoIntegration
14+
from sentry_sdk.integrations.django import DjangoIntegration, ignore_logger
1515

1616
from ..utils import _get_app_version
1717
from . import logs
@@ -233,6 +233,7 @@
233233
SENTRY_ORGANIZATION = env("ZOO_SENTRY_ORGANIZATION")
234234
SENTRY_API_KEY = env("ZOO_SENTRY_API_KEY")
235235

236+
ignore_logger("bandit.core.tester")
236237
sentry_sdk.init(
237238
integrations=[DjangoIntegration()],
238239
release=version,

0 commit comments

Comments
 (0)