Skip to content

Commit 1a0f8bf

Browse files
authored
Merge pull request #321 from KimMachineGun/psi
chore: don't log ENOTSUP during parsing PSI files
2 parents 601c1a7 + 6e53c39 commit 1a0f8bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cgroup2/utils.go

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

516516
if err := sc.Err(); err != nil {
517-
logrus.Errorf("unable to parse PSI data: %v", err)
517+
if !errors.Is(err, unix.ENOTSUP) {
518+
logrus.Errorf("unable to parse PSI data: %v", err)
519+
}
518520
return nil
519521
}
520522
return psistats

0 commit comments

Comments
 (0)