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:
parent
0995283c32
commit
f988ade02d
@ -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 ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user