Merge pull request #6271 from projectdiscovery/log-improvement

fixed log level mismatch
This commit is contained in:
Dogan Can Bakir 2025-06-18 15:05:41 +03:00 committed by GitHub
commit 6cc9c2e9e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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))