settings.SETUP.SENTRY_CAPTURE_MESSAGES (#133)

pull/142/head
Michael Manfre 2022-12-06 18:54:45 -05:00 zatwierdzone przez GitHub
rodzic e2b234d9ed
commit c87ad8116f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -20,7 +20,7 @@ def capture_message(message: str):
"""
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
capture_message(message)