🐛 Set up Sentry only when used (#671)

This commit is contained in:
Sebastián Ramírez
2024-03-11 16:47:51 +01:00
committed by GitHub
parent d52fc65491
commit 6851eea1fe

View File

@@ -3,6 +3,7 @@ import sentry_sdk
from app.core.celery_app import celery_app
from app.core.config import settings
if settings.SENTRY_DSN:
sentry_sdk.init(dsn=str(settings.SENTRY_DSN))