Merge pull request #320 from bogdal/sentry-config

Fix sentry configuration
This commit is contained in:
Daniel Greenfeld 2015-09-02 15:19:54 -07:00
commit 06428e3ab5

View File

@ -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