mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 11:35:41 +00:00
Don't log to sentry in debug mode (#4576)
This commit is contained in:
@ -61,7 +61,7 @@ def exception_handler(exc, context):
|
|||||||
"""
|
"""
|
||||||
response = None
|
response = None
|
||||||
|
|
||||||
if settings.SENTRY_ENABLED and settings.SENTRY_DSN:
|
if settings.SENTRY_ENABLED and settings.SENTRY_DSN and not settings.DEBUG:
|
||||||
# Report this exception to sentry.io
|
# Report this exception to sentry.io
|
||||||
from sentry_sdk import capture_exception
|
from sentry_sdk import capture_exception
|
||||||
capture_exception(exc)
|
capture_exception(exc)
|
||||||
|
Reference in New Issue
Block a user