mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 17:15:30 +00:00
fixed log level mismatch
This commit is contained in:
parent
5af6feb889
commit
aba8c47e10
@ -114,7 +114,7 @@ func init() {
|
||||
}))
|
||||
|
||||
dsl.PrintDebugCallback = func(args ...interface{}) error {
|
||||
gologger.Info().Msgf("print_debug value: %s", fmt.Sprint(args))
|
||||
gologger.Debug().Msgf("print_debug value: %s", fmt.Sprint(args))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@ -560,7 +560,7 @@ func (w *StandardWriter) WriteStoreDebugData(host, templateID, eventType string,
|
||||
filename = filepath.Join(subFolder, fmt.Sprintf("%s.txt", filename))
|
||||
f, err := os.OpenFile(filename, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0644)
|
||||
if err != nil {
|
||||
fmt.Print(err)
|
||||
gologger.Error().Msgf("Could not open debug output file: %s", err)
|
||||
return
|
||||
}
|
||||
_, _ = f.WriteString(fmt.Sprintln(data))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user