mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-11 04:07:48 +03:00
Merge pull request #2989 from vascop/patch-1
Sentry Redis integration enabled by default in production.
This commit is contained in:
commit
d25e5f7de6
|
@ -7,6 +7,7 @@ from sentry_sdk.integrations.logging import LoggingIntegration
|
||||||
{%- if cookiecutter.use_celery == 'y' %}
|
{%- if cookiecutter.use_celery == 'y' %}
|
||||||
from sentry_sdk.integrations.celery import CeleryIntegration
|
from sentry_sdk.integrations.celery import CeleryIntegration
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
from sentry_sdk.integrations.redis import RedisIntegration
|
||||||
|
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
from .base import * # noqa
|
from .base import * # noqa
|
||||||
|
@ -351,9 +352,9 @@ sentry_logging = LoggingIntegration(
|
||||||
)
|
)
|
||||||
|
|
||||||
{%- if cookiecutter.use_celery == 'y' %}
|
{%- if cookiecutter.use_celery == 'y' %}
|
||||||
integrations = [sentry_logging, DjangoIntegration(), CeleryIntegration()]
|
integrations = [sentry_logging, DjangoIntegration(), CeleryIntegration(), RedisIntegration()]
|
||||||
{% else %}
|
{% else %}
|
||||||
integrations = [sentry_logging, DjangoIntegration()]
|
integrations = [sentry_logging, DjangoIntegration(), RedisIntegration()]
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
sentry_sdk.init(
|
sentry_sdk.init(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user