settings: Extract settings.STAGING_ERROR_NOTIFICATIONS.

This commit is contained in:
Tim Abbott 2016-07-18 21:41:55 -07:00
parent 1f4c9eefe4
commit 522ccf8eb2
3 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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'

View File

@ -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': "",