Rename setting to match documentation

This commit is contained in:
Bruno Alla 2019-03-13 16:33:03 +00:00
parent d358340ff2
commit ed783ee3ad
2 changed files with 3 additions and 3 deletions

View File

@ -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
)

View File

@ -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()])