def METHOD_NAME(error):
    capture_exception(error)
    log.exception("Caught ISE 500 error: %r", 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 problem(500, "Internal Server Error", "Internal Server Error")