mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-09 06:24:52 +03:00
fix typos
This commit is contained in:
parent
173574233a
commit
b4f5415b39
|
@ -198,7 +198,7 @@ SENTRY_DSN = env('SENTRY_DSN')
|
|||
SENTRY_CELERY_LOGLEVEL = env.int('DJANGO_SENTRY_LOG_LEVEL', logging.INFO)
|
||||
|
||||
sentry_logging = LoggingIntegration(
|
||||
level=SENTRY_CELERY_LOGLEVEL, # Capture info and above as breadcrumbs
|
||||
level=DJANGO_SENTRY_LOG_LEVEL, # Capture info and above as breadcrumbs
|
||||
event_level=None # Send no events from log messages
|
||||
)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ psycopg2==2.7.4 --no-binary psycopg2 # https://github.com/psycopg/psycopg2
|
|||
Collectfast==0.6.2 # https://github.com/antonagestam/collectfast
|
||||
{%- endif %}
|
||||
{%- if cookiecutter.use_sentry == "y" %}
|
||||
raven==6.9.0 # https://github.com/getsentry/raven-python
|
||||
sentry-sdk==0.3.7 # https://docs.sentry.io/quickstart/?platform=python
|
||||
{%- endif %}
|
||||
|
||||
# Django
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
import os
|
||||
from celery import Celery
|
||||
|
||||
|
||||
|
||||
from django.apps import apps, AppConfig
|
||||
from django.conf import settings
|
||||
|
||||
|
@ -38,15 +36,16 @@ class CeleryAppConfig(AppConfig):
|
|||
{%- endif %}
|
||||
import sentry_sdk
|
||||
from sentry_sdk.integrations.celery import CeleryIntegration
|
||||
from sentry_sdk.integrations.logging import LoggingIntegration
|
||||
{% if cookiecutter.use_pycharm == 'y' -%}
|
||||
# @formatter:on
|
||||
{%- endif %}
|
||||
sentry_logging = LoggingIntegration(
|
||||
level=settings.SENTRY_CELERY_LOGLEVEL, # 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()])
|
||||
{%- endif %}
|
||||
sentry_logging = LoggingIntegration(
|
||||
level=settings.SENTRY_CELERY_LOGLEVEL, # 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()])
|
||||
{%- endif %}
|
||||
|
||||
|
||||
@app.task(bind=True)
|
||||
|
|
Loading…
Reference in New Issue
Block a user