surpress log from podcastparser
This commit is contained in:
parent
e91a61eb85
commit
c3a628e7a0
1 changed files with 3 additions and 0 deletions
|
@ -616,8 +616,11 @@ SENTRY_DSN = env("NEODB_SENTRY_DSN")
|
|||
if SENTRY_DSN:
|
||||
import sentry_sdk
|
||||
from sentry_sdk.integrations.django import DjangoIntegration
|
||||
from sentry_sdk.integrations.logging import ignore_logger
|
||||
from sentry_sdk.integrations.loguru import LoguruIntegration
|
||||
|
||||
ignore_logger("podcastparser")
|
||||
|
||||
sentry_env = sys.argv[0].split("/")[-1]
|
||||
if len(sys.argv) > 1 and sentry_env in ("manage.py", "django-admin"):
|
||||
sentry_env = sys.argv[1]
|
||||
|
|
Loading…
Add table
Reference in a new issue