Browse Source

chore(go.d.plugin): set nooplogger for automaxprocs (#19026)

Ilya Mashchenko 3 months ago
parent
commit
d85c7f343a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/go/cmd/godplugin/main.go

+ 3 - 1
src/go/cmd/godplugin/main.go

@@ -20,10 +20,10 @@ import (
 	"github.com/netdata/netdata/go/plugins/plugin/go.d/cli"
 
 	"github.com/jessevdk/go-flags"
+	"go.uber.org/automaxprocs/maxprocs"
 	"golang.org/x/net/http/httpproxy"
 
 	_ "github.com/netdata/netdata/go/plugins/plugin/go.d/modules"
-	_ "go.uber.org/automaxprocs"
 )
 
 var (
@@ -126,6 +126,8 @@ func init() {
 }
 
 func main() {
+	_, _ = maxprocs.Set(maxprocs.Logger(func(s string, args ...interface{}) {}))
+
 	opts := parseCLI()
 
 	if opts.Version {