From f988ade02de9cb6459d8be840dd122c1525ecd87 Mon Sep 17 00:00:00 2001 From: Takayoshi Kimura Date: Thu, 7 Feb 2019 14:19:22 +0900 Subject: [PATCH] Change log level to warning instead of error when cgroups file read failed. Because cgroups file may not exist at the timing of the read, it's better not to use error level. --- container/common/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/common/helpers.go b/container/common/helpers.go index d38777f9..3a84c255 100644 --- a/container/common/helpers.go +++ b/container/common/helpers.go @@ -134,7 +134,7 @@ func readString(dirpath string, file string) string { if err != nil { // Ignore non-existent files if !os.IsNotExist(err) { - klog.Errorf("readString: Failed to read %q: %s", cgroupFile, err) + klog.Warningf("readString: Failed to read %q: %s", cgroupFile, err) } return "" }