Merge commit '9d0278add0e9d0b4c4d853a112d47d9562d48a7e'

This commit is contained in:
burnettk 2022-10-19 15:17:22 -04:00
commit 88061c9fde
1 changed files with 3 additions and 0 deletions

View File

@ -172,6 +172,7 @@ def set_user_sentry_context() -> None:
@api_error_blueprint.app_errorhandler(ApiError)
def handle_invalid_usage(error: ApiError) -> flask.wrappers.Response:
"""Handles invalid usage error."""
current_app.logger.exception(error)
return make_response(jsonify(error), error.status_code)
@ -197,6 +198,8 @@ def handle_internal_server_exception(exception: Exception) -> flask.wrappers.Res
f"https://sentry.io/{organization_slug}/{project_slug}/events/{id}"
)
current_app.logger.exception(exception)
api_exception = ApiError(
error_code="error",
message=f"{exception.__class__.__name__}",