mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 17:47:08 +03:00
Merge pull request #320 from bogdal/sentry-config
Fix sentry configuration
This commit is contained in:
commit
06428e3ab5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user