mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
Convert Last Log Message To Structured Logging
The k8s.io/klog/v2 package does not currently support structured logging for warning level log messages. Therefore update the one call in the code base using klog.Warningf to instead use klog.InfoS.
This commit is contained in:
@@ -206,7 +206,7 @@ func getNodeUsage(
|
||||
for _, node := range nodes {
|
||||
pods, err := podutil.ListPodsOnANode(ctx, client, node)
|
||||
if err != nil {
|
||||
klog.Warningf("node %s will not be processed, error in accessing its pods (%#v)", node.Name, err)
|
||||
klog.V(2).InfoS("Node will not be processed, error accessing its pods", "node", klog.KObj(node), "err", err)
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user