Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

sentry: Allow setting DSN via environment.

Alex Vandiveraf046df3be52
diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py
index 26fd987416d..3b9ae0e2005 100644
--- a/zproject/computed_settings.py
+++ b/zproject/computed_settings.py
@@ -1125,6 +1125,8 @@ THUMBOR_KEY = get_secret('thumbor_key')
TWO_FACTOR_PATCH_ADMIN = False
+# Allow the environment to override the default DSN
+SENTRY_DSN = os.environ.get("SENTRY_DSN", SENTRY_DSN)
if SENTRY_DSN:
from .sentry import setup_sentry
setup_sentry(SENTRY_DSN)