Skip to content

Commit

Permalink
chore: don't log ENOTSUP during parsing PSI files
Browse files Browse the repository at this point in the history
  • Loading branch information
KimMachineGun committed Jan 2, 2024
1 parent 1e05688 commit 65c70b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cgroup2/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,9 @@ func getStatPSIFromFile(path string) *stats.PSIStats {
}

if err := sc.Err(); err != nil {
logrus.Errorf("unable to parse PSI data: %v", err)
if !errors.Is(err, unix.ENOTSUP) {
logrus.Errorf("unable to parse PSI data: %v", err)
}
return nil
}
return psistats
Expand Down

0 comments on commit 65c70b7

Please sign in to comment.