Merge pull request #2167 from nekop/lower-loglevel-cgroups-read-file

Change log level to warning instead of error when cgroups file read f…
This commit is contained in:
David Ashpole 2019-02-08 08:05:25 -08:00 committed by GitHub
commit 634fb4bb86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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