settings.SETUP.SENTRY_CAPTURE_MESSAGES (#133)

This commit is contained in:
Michael Manfre 2022-12-06 18:54:45 -05:00 committed by GitHub
parent e2b234d9ed
commit c87ad8116f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ def capture_message(message: str):
""" """
Sends the informational message to Sentry if it's configured Sends the informational message to Sentry if it's configured
""" """
if settings.SETUP.SENTRY_DSN and settings.SENTRY_CAPTURE_MESSAGES: if settings.SETUP.SENTRY_DSN and settings.SETUP.SENTRY_CAPTURE_MESSAGES:
from sentry_sdk import capture_message from sentry_sdk import capture_message
capture_message(message) capture_message(message)