Skip to content

Commit 95ff04d

Browse files
committed
fix logger
1 parent 307ad50 commit 95ff04d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

collector/cpu_linux_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package collector
1818

1919
import (
20+
"log/slog"
2021
"reflect"
2122
"testing"
2223

@@ -34,7 +35,7 @@ func makeTestCPUCollector(s map[int64]procfs.CPUStat) *cpuCollector {
3435
dup := make(map[int64]procfs.CPUStat, len(s))
3536
copyStats(dup, s)
3637
return &cpuCollector{
37-
logger: promspromslog.NewNopLogger(),
38+
logger: slog.Default(),
3839
cpuStats: dup,
3940
}
4041
}

0 commit comments

Comments
 (0)