(w http.ResponseWriter)
| 89 | } |
| 90 | |
| 91 | func newLogResponseWriter(w http.ResponseWriter) *logResponseWriter { |
| 92 | return &logResponseWriter{w, http.StatusOK} |
| 93 | } |
| 94 | |
| 95 | // logRequestBody logs the request body when the response status code is not 200. |
| 96 | // This addresses the issue of being unable to retrieve the request body in the customErrorHandler middleware. |