mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 10:33:54 +00:00
sentry: Set environment from machine.deploy_type config.
This allows for greater flexibility in values for "environment," and avoids having to have duplicate definitions of STAGING in `zproject/config.py` and `zproject/default_settings.py` (due to import order restrictions). It does overload the "deploy type" concept somewhat. Follow-up to #19185.
This commit is contained in:
committed by
Alex Vandiver
parent
3e57d66632
commit
928dc4bafd
@@ -1185,4 +1185,4 @@ SENTRY_DSN = os.environ.get("SENTRY_DSN", SENTRY_DSN)
|
||||
if SENTRY_DSN:
|
||||
from .sentry import setup_sentry
|
||||
|
||||
setup_sentry(SENTRY_DSN)
|
||||
setup_sentry(SENTRY_DSN, get_config("machine", "deploy_type", "development"))
|
||||
|
||||
Reference in New Issue
Block a user