Skip to content

Commit

Permalink
feat: improve request proxy log in yurthub component (#1772)
Browse files Browse the repository at this point in the history
Signed-off-by: HF <[email protected]>
  • Loading branch information
crazytaxii committed Nov 8, 2023
1 parent c1a4760 commit bb49fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/yurthub/proxy/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func WithMaxInFlightLimit(handler http.Handler, limit int) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
select {
case reqChan <- true:
klog.V(2).Infof("start proxying: %s %s, in flight requests: %d", strings.ToLower(req.Method), req.URL.String(), len(reqChan))
klog.V(2).Infof("%s, in flight requests: %d", util.ReqString(req), len(reqChan))
defer func() {
<-reqChan
klog.V(5).Infof("%s request completed, left %d requests in flight", util.ReqString(req), len(reqChan))
Expand Down

0 comments on commit bb49fa6

Please sign in to comment.