mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 23:03:40 +00:00
Merge pull request #98566 from chymy/scheduler-structured-logs-0128
migrate pkg/scheduler/internal/cache/debugger/comparer.go to structured logs
This commit is contained in:
commit
fc39904bed
@ -57,11 +57,11 @@ func (c *CacheComparer) Compare() error {
|
||||
pendingPods := c.PodQueue.PendingPods()
|
||||
|
||||
if missed, redundant := c.CompareNodes(nodes, dump.Nodes); len(missed)+len(redundant) != 0 {
|
||||
klog.Warningf("cache mismatch: missed nodes: %s; redundant nodes: %s", missed, redundant)
|
||||
klog.InfoS("cache mismatch", "missed nodes", missed, "redundant nodes", redundant)
|
||||
}
|
||||
|
||||
if missed, redundant := c.ComparePods(pods, pendingPods, dump.Nodes); len(missed)+len(redundant) != 0 {
|
||||
klog.Warningf("cache mismatch: missed pods: %s; redundant pods: %s", missed, redundant)
|
||||
klog.InfoS("cache mismatch", "missed pods", missed, "redundant pods", redundant)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user