Research mode

- adds a new link on service settings page to switch service into/out of research mode
- platform admin only
- shows an indicator in the footer
This commit is contained in:
Martyn Inglis
2016-06-01 16:07:43 +01:00
parent f2cca024dd
commit c9297459e2
7 changed files with 188 additions and 24 deletions

View File

@@ -285,6 +285,7 @@ def register_errorhandlers(application):
@application.errorhandler(HTTPError)
def render_http_error(error):
application.logger.error("API called failed with status {} message {}".format(error.status_code, error.message))
error_code = error.status_code
if error_code not in [401, 404, 403, 500]:
error_code = 500