mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-15 05:37:46 +00:00
add error log when dropping a request
This commit is contained in:
parent
4fe9e26f27
commit
d2af28d645
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user