fix typos

This commit is contained in:
Guilherme Fabrizio 2018-10-01 17:54:33 +01:00
parent 173574233a
commit b4f5415b39
3 changed files with 10 additions and 11 deletions

View File

@ -198,7 +198,7 @@ SENTRY_DSN = env('SENTRY_DSN')
SENTRY_CELERY_LOGLEVEL = env.int('DJANGO_SENTRY_LOG_LEVEL', logging.INFO) SENTRY_CELERY_LOGLEVEL = env.int('DJANGO_SENTRY_LOG_LEVEL', logging.INFO)
sentry_logging = LoggingIntegration( 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 event_level=None # Send no events from log messages
) )

View File

@ -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 Collectfast==0.6.2 # https://github.com/antonagestam/collectfast
{%- endif %} {%- endif %}
{%- if cookiecutter.use_sentry == "y" %} {%- 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 %} {%- endif %}
# Django # Django

View File

@ -2,8 +2,6 @@
import os import os
from celery import Celery from celery import Celery
from django.apps import apps, AppConfig from django.apps import apps, AppConfig
from django.conf import settings from django.conf import settings
@ -38,6 +36,7 @@ class CeleryAppConfig(AppConfig):
{%- endif %} {%- endif %}
import sentry_sdk import sentry_sdk
from sentry_sdk.integrations.celery import CeleryIntegration from sentry_sdk.integrations.celery import CeleryIntegration
from sentry_sdk.integrations.logging import LoggingIntegration
{% if cookiecutter.use_pycharm == 'y' -%} {% if cookiecutter.use_pycharm == 'y' -%}
# @formatter:on # @formatter:on
{%- endif %} {%- endif %}