mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 23:20:00 +08:00
chore(api/maxconnshandler): add tracing information to the log (#4126)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user