Skip to content

Commit 6cc9c2e

Browse files
Merge pull request #6271 from projectdiscovery/log-improvement
fixed log level mismatch
2 parents 5af6feb + aba8c47 commit 6cc9c2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/operators/common/dsl/dsl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func init() {
114114
}))
115115

116116
dsl.PrintDebugCallback = func(args ...interface{}) error {
117-
gologger.Info().Msgf("print_debug value: %s", fmt.Sprint(args))
117+
gologger.Debug().Msgf("print_debug value: %s", fmt.Sprint(args))
118118
return nil
119119
}
120120

pkg/output/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ func (w *StandardWriter) WriteStoreDebugData(host, templateID, eventType string,
560560
filename = filepath.Join(subFolder, fmt.Sprintf("%s.txt", filename))
561561
f, err := os.OpenFile(filename, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0644)
562562
if err != nil {
563-
fmt.Print(err)
563+
gologger.Error().Msgf("Could not open debug output file: %s", err)
564564
return
565565
}
566566
_, _ = f.WriteString(fmt.Sprintln(data))

0 commit comments

Comments
 (0)