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:
Kubernetes Prow Robot 2021-02-01 08:43:49 -08:00 committed by GitHub
commit fc39904bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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