Skip to content

Commit 6e53c39

Browse files
committed
chore: don't log ENOTSUP during parsing PSI files
Signed-off-by: Geon Kim <geon0250@gmail.com>
1 parent 1e05688 commit 6e53c39

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)