diff --git a/cmd/root.go b/cmd/root.go index 1a84b6f50711..bacf6210d7f6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -7,7 +7,6 @@ import ( "fmt" "io" "io/ioutil" - stdlog "log" "os" "os/signal" "path/filepath" @@ -242,7 +241,6 @@ func (c *rootCommand) persistentPreRunE(cmd *cobra.Command, args []string) error c.loggerIsRemote = true } - stdlog.SetOutput(c.globalState.logger.Writer()) c.globalState.logger.Debugf("k6 version: v%s", consts.FullVersion()) return nil } diff --git a/cmd/root_test.go b/cmd/root_test.go index 452ad2471329..afaef60611d2 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -61,10 +61,7 @@ func TestMain(m *testing.M) { }() defer func() { - // TODO: figure out why logrus' `Entry.WriterLevel` goroutine sticks - // around and remove this exception. - opt := goleak.IgnoreTopFunction("io.(*pipe).read") - if err := goleak.Find(opt); err != nil { + if err := goleak.Find(); err != nil { fmt.Println(err) //nolint:forbidigo exitCode = 3 }