From 2f9ab2e17406694722618dac3045916169acf981 Mon Sep 17 00:00:00 2001 From: Hugo Hromic Date: Tue, 10 Oct 2023 23:25:55 +0100 Subject: [PATCH] manager: require higher verbosity level for container info misses * avoids repeated message when not scrapping root container metrics --- manager/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager/manager.go b/manager/manager.go index ed240fd062..d91ad6e8d3 100644 --- a/manager/manager.go +++ b/manager/manager.go @@ -698,7 +698,7 @@ func (m *manager) GetRequestedContainersInfo(containerName string, options v2.Re info, err := m.containerDataToContainerInfo(data, &query) if err != nil { if err == memory.ErrDataNotFound { - klog.Warningf("Error getting data for container %s because of race condition", name) + klog.V(4).Infof("Error getting data for container %s because of race condition", name) continue } errs.append(name, "containerDataToContainerInfo", err) @@ -1375,7 +1375,7 @@ func (m *manager) containersInfo(containers map[string]*containerData, query *in if err != nil { // Ignore the error because of race condition and return best-effort result. if err == memory.ErrDataNotFound { - klog.Warningf("Error getting data for container %s because of race condition", name) + klog.V(4).Infof("Error getting data for container %s because of race condition", name) continue } return nil, err