Skip to content

Commit

Permalink
*: fix debug log formatting (thanos-io#7614)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
simonpasquier authored Aug 9, 2024
1 parent a3a7c3b commit dcadaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/thanos/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dcadaae

Please sign in to comment.