Skip to content

Commit 771e32a

Browse files
chore: Add EOPNOTSUPP to err filter for PSI data
* When PSI is not enabled attempting to read files end up in Operation Not Supported error which corresponds to EOPNOTSUPP error * Add that error to filter to suppress inappropriate log message Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
1 parent 1a0f8bf commit 771e32a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cgroup2/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ func getStatPSIFromFile(path string) *stats.PSIStats {
514514
}
515515

516516
if err := sc.Err(); err != nil {
517-
if !errors.Is(err, unix.ENOTSUP) {
517+
if !errors.Is(err, unix.ENOTSUP) && !errors.Is(err, unix.EOPNOTSUPP) {
518518
logrus.Errorf("unable to parse PSI data: %v", err)
519519
}
520520
return nil

0 commit comments

Comments
 (0)