diff --git a/{{cookiecutter.project_slug}}/config/settings/production.py b/{{cookiecutter.project_slug}}/config/settings/production.py index ab2fda9f5..b1b09d903 100644 --- a/{{cookiecutter.project_slug}}/config/settings/production.py +++ b/{{cookiecutter.project_slug}}/config/settings/production.py @@ -269,10 +269,10 @@ LOGGING = { # Sentry # ------------------------------------------------------------------------------ SENTRY_DSN = env('SENTRY_DSN') -SENTRY_LOGLEVEL = env.int('DJANGO_SENTRY_LOG_LEVEL', logging.INFO) +SENTRY_LOG_LEVEL = env.int('DJANGO_SENTRY_LOG_LEVEL', logging.INFO) sentry_logging = LoggingIntegration( - level=SENTRY_LOGLEVEL, # Capture info and above as breadcrumbs + level=SENTRY_LOG_LEVEL, # Capture info and above as breadcrumbs event_level=None, # Send no events from log messages ) diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/taskapp/celery.py b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/taskapp/celery.py index 8ede2257c..2453df6fb 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/taskapp/celery.py +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/taskapp/celery.py @@ -43,7 +43,7 @@ class CeleryAppConfig(AppConfig): # @formatter:on {%- endif %} sentry_logging = LoggingIntegration( - level=settings.SENTRY_LOGLEVEL, # Capture info and above as breadcrumbs + level=settings.SENTRY_LOG_LEVEL, # Capture info and above as breadcrumbs event_level=None, # Send no events from log messages ) sentry_sdk.init(dsn=settings.SENTRY_DSN, integrations=[sentry_logging, CeleryIntegration()])