Disable internal standard library logger
@@ -2,6 +2,8 @@ package runner
import (
"bufio"
+ "io"
+ "log"
"os"
"path/filepath"
"strings"
@@ -161,6 +163,10 @@ func configureOutput(options *types.Options) {
if options.Silent {
gologger.DefaultLogger.SetMaxLevel(levels.LevelSilent)
}
+
+ // disable standard logger (ref: https://github.com/golang/go/issues/19895)
+ log.SetFlags(0)
+ log.SetOutput(io.Discard)
}
// loadResolvers loads resolvers from both user provided flag and file
