@app.errorhandler(500)
def ise(error):
    log.error('Caught ISE 500 error.')
    log.debug('Request path is: %s', request.path)
    log.debug('Request environment is: %s', request.environ)
    log.debug('Request headers are: %s', request.headers)
    return error
@app.errorhandler(500)
def ise(error):
    log.error('Caught ISE 500 error.')
    log.debug('Request path is: %s', request.path)
    log.debug('Request environment is: %s', request.environ)
    log.debug('Request headers are: %s', request.headers)
    return error