Skip to content

Commit 2f9ab2e

Browse files
hhromicdims
authored andcommitted
manager: require higher verbosity level for container info misses
* avoids repeated message when not scrapping root container metrics
1 parent 8953b04 commit 2f9ab2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manager/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ func (m *manager) GetRequestedContainersInfo(containerName string, options v2.Re
698698
info, err := m.containerDataToContainerInfo(data, &query)
699699
if err != nil {
700700
if err == memory.ErrDataNotFound {
701-
klog.Warningf("Error getting data for container %s because of race condition", name)
701+
klog.V(4).Infof("Error getting data for container %s because of race condition", name)
702702
continue
703703
}
704704
errs.append(name, "containerDataToContainerInfo", err)
@@ -1375,7 +1375,7 @@ func (m *manager) containersInfo(containers map[string]*containerData, query *in
13751375
if err != nil {
13761376
// Ignore the error because of race condition and return best-effort result.
13771377
if err == memory.ErrDataNotFound {
1378-
klog.Warningf("Error getting data for container %s because of race condition", name)
1378+
klog.V(4).Infof("Error getting data for container %s because of race condition", name)
13791379
continue
13801380
}
13811381
return nil, err

0 commit comments

Comments
 (0)