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 and jnyi committed Oct 16, 2024
1 parent cd21dd7 commit e687315
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 e687315

Please sign in to comment.