From 6e53c3905af970bcbacb4df38b1c09af26ae7593 Mon Sep 17 00:00:00 2001 From: Geon Kim Date: Tue, 2 Jan 2024 21:45:06 +0900 Subject: [PATCH] chore: don't log ENOTSUP during parsing PSI files Signed-off-by: Geon Kim --- cgroup2/utils.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgroup2/utils.go b/cgroup2/utils.go index 20be57ca..3cc3037f 100644 --- a/cgroup2/utils.go +++ b/cgroup2/utils.go @@ -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