summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Manfre2022-12-06 11:50:42 -0500
committerGitHub2022-12-06 09:50:42 -0700
commite2b234d9ed99ba90835d0a4c59ea22dde1262352 (patch)
tree65778ec82ff08a63f877d45cf13c9229471fa2c0 /core
parent3e313800fcff82ab7b2c0e08abba915a03dd8fb2 (diff)
downloadtakahe-e2b234d9ed99ba90835d0a4c59ea22dde1262352.tar.gz
takahe-e2b234d9ed99ba90835d0a4c59ea22dde1262352.tar.bz2
takahe-e2b234d9ed99ba90835d0a4c59ea22dde1262352.zip
Setting to enable Sentry capture_messages (#128)
Diffstat (limited to 'core')
-rw-r--r--core/exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/exceptions.py b/core/exceptions.py
index 335b7d6..d41bb82 100644
--- a/core/exceptions.py
+++ b/core/exceptions.py
@@ -20,7 +20,7 @@ def capture_message(message: str):
"""
Sends the informational message to Sentry if it's configured
"""
- if settings.SETUP.SENTRY_DSN:
+ if settings.SETUP.SENTRY_DSN and settings.SENTRY_CAPTURE_MESSAGES:
from sentry_sdk import capture_message
capture_message(message)