diff --git a/SciPost_v1/settings/production.py b/SciPost_v1/settings/production.py index 8691f58c5b870ead85df02c84bef224e4f0784fb..f8b9247febb76375efa867f83b35ebbc7a7c5d10 100644 --- a/SciPost_v1/settings/production.py +++ b/SciPost_v1/settings/production.py @@ -1,5 +1,6 @@ import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration +from sentry_sdk.integrations.celery import CeleryIntegration from .base import * @@ -67,7 +68,7 @@ REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = ('rest_framework.renderers.JSONRend # Sentry sentry_sdk.init( dsn=get_secret('SENTRY_DSN'), - integrations=[DjangoIntegration()] + integrations=[DjangoIntegration(), CeleryIntegration()] ) CSP_REPORT_URI = get_secret('CSP_SENTRY') CSP_REPORT_ONLY = False