migrate pkg/scheduler/internal/cache/debugger/comparer.go to structured logs

Signed-off-by: chymy <chang.min1@zte.com.cn>
This commit is contained in:
chymy 2021-01-29 18:04:15 +08:00
parent 081f68d685
commit ed6475ae48

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