mirror of
https://github.com/zulip/zulip.git
synced 2026-06-18 21:01:52 +08:00
settings: Extract settings.STAGING_ERROR_NOTIFICATIONS.
This commit is contained in:
parent
1f4c9eefe4
commit
522ccf8eb2
@ -68,7 +68,7 @@ class AdminZulipHandler(logging.Handler):
|
||||
)
|
||||
|
||||
try:
|
||||
if settings.ZULIP_COM_STAGING:
|
||||
if settings.STAGING_ERROR_NOTIFICATIONS:
|
||||
# On staging, process the report directly so it can happen inside this
|
||||
# try/except to prevent looping
|
||||
from zilencer.error_notify import notify_server_error
|
||||
|
||||
@ -55,6 +55,7 @@ STATSD_HOST = 'stats.zulip.net'
|
||||
if ZULIP_COM_STAGING:
|
||||
EXTERNAL_HOST = 'staging.zulip.com'
|
||||
STATSD_PREFIX = 'staging'
|
||||
STAGING_ERROR_NOTIFICATIONS = True
|
||||
else:
|
||||
EXTERNAL_HOST = 'zulip.com'
|
||||
EXTERNAL_API_PATH = 'api.zulip.com'
|
||||
|
||||
@ -113,6 +113,7 @@ DEFAULT_SETTINGS = {'TWITTER_CONSUMER_KEY': '',
|
||||
'MAX_FILE_UPLOAD_SIZE': 25,
|
||||
'DROPBOX_APP_KEY': '',
|
||||
'ERROR_REPORTING': True,
|
||||
'STAGING_ERROR_NOTIFICATIONS': False,
|
||||
'JWT_AUTH_KEYS': {},
|
||||
'NAME_CHANGES_DISABLED': False,
|
||||
'DEPLOYMENT_ROLE_NAME': "",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user