Skip to content

Commit

Permalink
fix: log level for client-side throttling
Browse files Browse the repository at this point in the history
Expresses when throttling occurs on the
client side by setting the log message level to Warn.

fixes: #11387

Signed-off-by: Jack-R-lantern <[email protected]>
  • Loading branch information
Jack-R-lantern committed Jul 19, 2023
1 parent d8a920a commit 824c736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/logs/log-k8s-requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (m k8sLogRoundTripper) RoundTrip(r *http.Request) (*http.Response, error) {
x, err := m.roundTripper.RoundTrip(r)
if x != nil {
verb, kind := k8s.ParseRequest(r)
log.Debugf("%s %s %d", verb, kind, x.StatusCode)
log.Warnf("%s %s %d", verb, kind, x.StatusCode)
}
return x, err
}
Expand Down

0 comments on commit 824c736

Please sign in to comment.