From 12f1744e799e04373c7a29b42bf8b8a332c82790 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Fri, 24 Nov 2023 16:37:27 +0100 Subject: [PATCH] Fix debug log in cpu collector (#2857) Signed-off-by: Simon Pasquier --- collector/cpu_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/cpu_linux.go b/collector/cpu_linux.go index d158567f..fcbf651b 100644 --- a/collector/cpu_linux.go +++ b/collector/cpu_linux.go @@ -205,7 +205,7 @@ func (c *cpuCollector) updateInfo(ch chan<- prometheus.Metric) error { cpuFreqEnabled, ok := collectorState["cpufreq"] if !ok || cpuFreqEnabled == nil { - level.Debug(c.logger).Log("cpufreq key missing or nil value in collectorState map", err) + level.Debug(c.logger).Log("msg", "cpufreq key missing or nil value in collectorState map") } else if !*cpuFreqEnabled { for _, cpu := range info { ch <- prometheus.MustNewConstMetric(c.cpuFrequencyHz,