gitlab-org--gitlab-foss/changelogs/unreleased/sh-fix-grape-logging-status-code.yml
Stan Hu 6b98033d91 Fix api_json.log not always reporting the right HTTP status code
As described in https://github.com/aserafin/grape_logging/issues/45, if
a Grape error is caught by the handlers and a different return code
is returned, then the api_json.log would have a 500 error code
instead of the right value. Inserting the GrapeLogging middleware
after the Grape middleware fixes this problem.

Seen in https://gitlab.com/gitlab-com/infrastructure/issues/4249
2018-05-17 23:51:54 -07:00

5 lines
111 B
YAML

---
title: Fix api_json.log not always reporting the right HTTP status code
merge_request:
author:
type: fixed