From b38ac3d571bc3065e45426ac4dcf3c9d12d92bf1 Mon Sep 17 00:00:00 2001 From: alingse Date: Fri, 4 Apr 2025 09:40:58 +0800 Subject: [PATCH] fix: fix call Errorf with wrong err --- manager/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/container.go b/manager/container.go index 4efbfda191..9160aebae0 100644 --- a/manager/container.go +++ b/manager/container.go @@ -724,7 +724,7 @@ func (cd *containerData) updateStats() error { return statsErr } if perfStatsErr != nil { - klog.Errorf("error occurred while collecting perf stats for container %s: %s", cInfo.Name, err) + klog.Errorf("error occurred while collecting perf stats for container %s: %s", cInfo.Name, perfStatsErr) return perfStatsErr } if resctrlStatsErr != nil {