-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: log level for client-side throttling #11393
fix: log level for client-side throttling #11393
Conversation
Expresses when throttling occurs on the client side by setting the log message level to Warn. fixes: argoproj#11387 Signed-off-by: Jack-R-lantern <[email protected]>
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the motivation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be kept at debug, this log is very expensive!
b05339e
to
824c736
Compare
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be kept at debug, this log is very expensive!
Sorry about that. I'll think about it a bit more and submit a PR |
Expresses when throttling occurs on the
client side by setting the log message level to Warn.
Fixes #11387
Motivation
Modifications
Verification