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.
This commit is contained in:
Takayoshi Kimura 2019-02-07 14:19:22 +09:00
parent 0995283c32
commit f988ade02d

View File

@ -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 ""
}