(httpStatus int)
| 26 | ) |
| 27 | |
| 28 | func shouldSuppressError(httpStatus int) bool { |
| 29 | return httpStatus == http.StatusTooManyRequests |
| 30 | } |
| 31 | |
| 32 | // Log returns a middleware that logs requests. |
| 33 | // If logger is nil, the logger will be extracted from the context. |