chore(go.d.plugin): set nooplogger for automaxprocs (#19026)
Ilya Mashchenko committed
Nov 15, 2024 at 00:47 UTC
d85c7f343a510fbc8733022609a30f86033619ef
1 file changed
+3
-1
src/go/cmd/godplugin/main.go
+3
-1
@@ -20,10 +20,10 @@ import (
20
"github.com/netdata/netdata/go/plugins/plugin/go.d/cli"
21
22
"github.com/jessevdk/go-flags"
23
+ "go.uber.org/automaxprocs/maxprocs"
24
"golang.org/x/net/http/httpproxy"
25
26
_ "github.com/netdata/netdata/go/plugins/plugin/go.d/modules"
26
- _ "go.uber.org/automaxprocs"
27
)
28
29
var (
@@ -126,6 +126,8 @@ func init() {
126
}
127
128
func main() {
129
+ _, _ = maxprocs.Set(maxprocs.Logger(func(s string, args ...interface{}) {}))
130
+
131
opts := parseCLI()
132
133
if opts.Version {