chore(api/maxconnshandler): add tracing information to the log (#4126)

This commit is contained in:
chen quan
2024-05-08 13:25:35 +08:00
committed by GitHub
parent 02dd81c05c
commit 9d551d507f

View File

@@ -23,7 +23,7 @@ func MaxConnsHandler(n int) func(http.Handler) http.Handler {
if latch.TryBorrow() {
defer func() {
if err := latch.Return(); err != nil {
logx.Error(err)
logx.WithContext(r.Context()).Error(err)
}
}()