mirror of https://github.com/daffainfo/nuclei.git
Disable internal standard library logger
parent
1bbcdd30dc
commit
5889a39fb4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue