-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
proxylib: Downgrade noisy log msg to debug level #22848
proxylib: Downgrade noisy log msg to debug level #22848
Conversation
The log msg doesn't provide any useful / actionable information anyway, presumably unless you're debugging. Fixes: 69518a1 ("envoy: API update") Signed-off-by: Chris Tarazi <chris@isovalent.com>
@@ -183,7 +183,7 @@ func (ins *Instance) PolicyUpdate(resp *envoy_service_discovery.DiscoveryRespons | |||
return fmt.Errorf("NPDS: Policy has no endpoint_ips") | |||
} | |||
for _, ip := range ips { | |||
logrus.Infof("NPDS: Endpoint IP: %s", ip) | |||
logrus.Debugf("NPDS: Endpoint IP: %s", ip) |
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.
this is un-related to this PR, we can just have one single log entry to print all ips together, something like below
logrus.Infof("NPDS: Endpoint IP: %v", strings.Join(ips, ","))
or just
logrus.Debugf("NPDS: Endpoint IP: %v", ips)
Downgrading a log msg level shouldn't need a full CI run. We have an approving review above, marking ready to merge. |
cc @jrajahalme |
Nominate this PR for 1.13 and 1.12 backport, the main reason is to avoid noisy logs, which might cause issue for users to overlook the actual error. |
The log msg doesn't provide any useful / actionable information anyway,
presumably unless you're debugging.
Fixes: 69518a1 ("envoy: API update")
Signed-off-by: Chris Tarazi chris@isovalent.com