From d2af28d64531de3afdfd38afd6224c61bf22b3cd Mon Sep 17 00:00:00 2001
From: Rowan Bohde <rowan@allspice.io>
Date: Fri, 11 Apr 2025 13:40:48 -0500
Subject: [PATCH] add error log when dropping a request

---
 routers/common/qos.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/routers/common/qos.go b/routers/common/qos.go
index 6f2ed0da02..e50fbe4f69 100644
--- a/routers/common/qos.go
+++ b/routers/common/qos.go
@@ -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
 			}