From e6873159e8763ebc384afa961a630ee497e52dae Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Fri, 9 Aug 2024 10:29:59 +0200 Subject: [PATCH] *: fix debug log formatting (#7614) Before the change: ``` ... msg="maxprocs: No GOMAXPROCS change to reset%!(EXTRA []interface {}=[]) ``` After this change: ``` ... msg="maxprocs: No GOMAXPROCS change to reset" ``` Signed-off-by: Simon Pasquier --- cmd/thanos/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/thanos/main.go b/cmd/thanos/main.go index a29d702d0d..ea201d62b6 100644 --- a/cmd/thanos/main.go +++ b/cmd/thanos/main.go @@ -74,7 +74,7 @@ func main() { // Running in container with limits but with empty/wrong value of GOMAXPROCS env var could lead to throttling by cpu // maxprocs will automate adjustment by using cgroups info about cpu limit if it set as value for runtime.GOMAXPROCS. undo, err := maxprocs.Set(maxprocs.Logger(func(template string, args ...interface{}) { - level.Debug(logger).Log("msg", fmt.Sprintf(template, args)) + level.Debug(logger).Log("msg", fmt.Sprintf(template, args...)) })) defer undo() if err != nil {