🐛 Set up Sentry only when used (#671)
This commit is contained in:

committed by
GitHub

parent
d52fc65491
commit
6851eea1fe
@@ -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))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user