Skip to content

Commit 634fb4b

Browse files
authored
Merge pull request #2167 from nekop/lower-loglevel-cgroups-read-file
Change log level to warning instead of error when cgroups file read f…
2 parents 0995283 + f988ade commit 634fb4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

container/common/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func readString(dirpath string, file string) string {
134134
if err != nil {
135135
// Ignore non-existent files
136136
if !os.IsNotExist(err) {
137-
klog.Errorf("readString: Failed to read %q: %s", cgroupFile, err)
137+
klog.Warningf("readString: Failed to read %q: %s", cgroupFile, err)
138138
}
139139
return ""
140140
}

0 commit comments

Comments
 (0)