add error log when dropping a request

This commit is contained in:
Rowan Bohde 2025-04-11 13:40:48 -05:00
parent 4fe9e26f27
commit d2af28d645
No known key found for this signature in database
GPG Key ID: 9F1F7F77808AAD9F

View File

@ -75,6 +75,7 @@ func QoS() func(next http.Handler) http.Handler {
// Check if the request can begin processing.
err := c.Acquire(ctx, int(priority))
if err != nil {
log.Error("QoS error, dropping request of priority %s: %v", priority, err)
renderServiceUnavailable(w, req)
return
}