v4 logging

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2024-06-27 00:13:45 +08:00
parent d29bdab951
commit 1e3dc23e16
No known key found for this signature in database
GPG Key ID: A79582C05F6BEF63

View File

@ -84,7 +84,7 @@ func (sp *summaryProviderImpl) GetSystemContainersCPUAndMemoryStats(nodeConfig c
s, err := sp.provider.GetCgroupCPUAndMemoryStats(cont.name, cont.forceStatsUpdate)
if err != nil {
if errors.Is(errors.Unwrap(err), cadvisormemory.ErrDataNotFound) {
klog.InfoS("cgroup stats not found in memory cache", "containerName", cont.name)
klog.V(4).InfoS("cgroup stats not found in memory cache", "containerName", cont.name)
} else {
klog.ErrorS(err, "Failed to get system container stats", "containerName", cont.name)
}