fixed log level mismatch

This commit is contained in:
knakul853 2025-06-17 17:02:57 +05:30
parent 5af6feb889
commit aba8c47e10
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))