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

Commit

Permalink
fix(sentry): suppress sentry events for bandit logger
Browse files Browse the repository at this point in the history
  • Loading branch information
gjuro87 authored and aexvir committed Mar 24, 2021
1 parent 923b2b5 commit 567eb51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zoo/base/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 567eb51

Please sign in to comment.