-
We saw in gitlab-com/gl-infra/production#5194 that errors in a middleware would only be caught by Puma's low-level handler. This error only showed up in the Puma stderr log, which made it difficult to diagnose. If Sentry is configured, we send the exception to Sentry. The error still will get logged on stderr by Puma. This mirrors the change we're making in CNG and Omnibus: 1. gitlab-org/charts/gitlab#2818 2. omnibus-gitlab#6284
8c5d4f9d