only enable sentry when not DEBUG
This commit is contained in:
parent
755045b226
commit
16eb629b71
|
@ -217,6 +217,8 @@ CELERY_BEAT_SCHEDULE = {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
if not DEBUG:
|
||||
sentry_init(
|
||||
dsn=("https://55b5dd780bc14f4c96bba69b7a9abbcc:449af483bd0745"
|
||||
"0d83be640d834e5458@sentry.services.beryju.org/8"),
|
||||
|
@ -228,7 +230,7 @@ sentry_init(
|
|||
event_level=logging.ERROR
|
||||
)
|
||||
],
|
||||
send_default_pii=True
|
||||
send_default_pii=True,
|
||||
)
|
||||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
|
@ -315,7 +317,7 @@ with CONFIG.cd('log'):
|
|||
},
|
||||
'daphne': {
|
||||
'handlers': LOG_HANDLERS,
|
||||
'level': 'DEBUG',
|
||||
'level': 'INFO',
|
||||
'propagate': True,
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue