aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/app/handler.go')
-rw-r--r--dashboard/app/handler.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/dashboard/app/handler.go b/dashboard/app/handler.go
index 7162bd85c..ee937f1c6 100644
--- a/dashboard/app/handler.go
+++ b/dashboard/app/handler.go
@@ -94,7 +94,10 @@ func throttleRequest(c context.Context, w http.ResponseWriter, r *http.Request)
return true
}
accept, err := ThrottleRequest(c, ip)
- if err != nil {
+ if errors.Is(err, ErrThrottleTooManyRetries) {
+ // We get these at peak QPS anyway, it's not an error.
+ log.Warningf(c, "failed to throttle: %v", err)
+ } else if err != nil {
log.Errorf(c, "failed to throttle: %v", err)
}
log.Infof(c, "throttling for %q: %t", ip, accept)