From e73e967c8dfd037c6676c2dff38316e8b8afeeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Bogda=C5=82?= Date: Wed, 2 Sep 2015 22:10:37 +0200 Subject: [PATCH] Fix sentry configuration --- {{cookiecutter.repo_name}}/config/settings/production.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.repo_name}}/config/settings/production.py b/{{cookiecutter.repo_name}}/config/settings/production.py index 23830a33a..766ee2037 100644 --- a/{{cookiecutter.repo_name}}/config/settings/production.py +++ b/{{cookiecutter.repo_name}}/config/settings/production.py @@ -162,7 +162,8 @@ CACHES = { {% if cookiecutter.use_sentry == "y" %} # Sentry Configuration -SENTRY_CLIENT = env('DJANGO_SENTRY_CLIENT') +SENTRY_DSN = env('DJANGO_SENTRY_DSN') +SENTRY_CLIENT = env('DJANGO_SENTRY_CLIENT', default='raven.contrib.django.raven_compat.DjangoClient') LOGGING = { 'version': 1, 'disable_existing_loggers': True, @@ -205,9 +206,10 @@ LOGGING = { }, }, } -SENTRY_CELERY_LOGLEVEL = env('DJANGO_SENTRY_LOG_LEVEL', logging.INFO) +SENTRY_CELERY_LOGLEVEL = env.int('DJANGO_SENTRY_LOG_LEVEL', logging.INFO) RAVEN_CONFIG = { - 'CELERY_LOGLEVEL': env('DJANGO_SENTRY_LOG_LEVEL', logging.INFO) + 'CELERY_LOGLEVEL': env.int('DJANGO_SENTRY_LOG_LEVEL', logging.INFO), + 'DSN': SENTRY_DSN } {% endif %} # Your production stuff: Below this line define 3rd party library settings