Skip to content

Commit

Permalink
manager: require higher verbosity level for container info misses
Browse files Browse the repository at this point in the history
* avoids repeated message when not scrapping root container metrics
  • Loading branch information
hhromic authored and dims committed Oct 16, 2023
1 parent 8953b04 commit 2f9ab2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2f9ab2e

Please sign in to comment.