MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / shouldSuppressError

Function shouldSuppressError

pkg/webmiddleware/log.go:28–30  ·  view source on GitHub ↗
(httpStatus int)

Source from the content-addressed store, hash-verified

26)
27
28func 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.

Callers 1

LogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected