mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-09 14:34:53 +03:00
Rename setting to match documentation
This commit is contained in:
parent
d358340ff2
commit
ed783ee3ad
|
@ -269,10 +269,10 @@ LOGGING = {
|
|||
# Sentry
|
||||
# ------------------------------------------------------------------------------
|
||||
SENTRY_DSN = env('SENTRY_DSN')
|
||||
SENTRY_LOGLEVEL = env.int('DJANGO_SENTRY_LOG_LEVEL', logging.INFO)
|
||||
SENTRY_LOG_LEVEL = env.int('DJANGO_SENTRY_LOG_LEVEL', logging.INFO)
|
||||
|
||||
sentry_logging = LoggingIntegration(
|
||||
level=SENTRY_LOGLEVEL, # Capture info and above as breadcrumbs
|
||||
level=SENTRY_LOG_LEVEL, # Capture info and above as breadcrumbs
|
||||
event_level=None, # Send no events from log messages
|
||||
)
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ class CeleryAppConfig(AppConfig):
|
|||
# @formatter:on
|
||||
{%- endif %}
|
||||
sentry_logging = LoggingIntegration(
|
||||
level=settings.SENTRY_LOGLEVEL, # Capture info and above as breadcrumbs
|
||||
level=settings.SENTRY_LOG_LEVEL, # 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()])
|
||||
|
|
Loading…
Reference in New Issue
Block a user