Skip to content

Commit

Permalink
[fix]: Disable log raw input
Browse files Browse the repository at this point in the history
  • Loading branch information
linzeyan committed Feb 21, 2023
1 parent 926cf53 commit df725c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/common/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (p *printer) json(a ...any) {
indent := strings.Repeat(" ", p.indent)
encoder.SetIndent("", indent)
if err := encoder.Encode(i); err != nil {
stdLogger.Log.Debug(err.Error(), DefaultField(i))
stdLogger.Log.Debug(err.Error())
return
}
fmt.Fprintf(os.Stdout, "%s", buf.String())
Expand All @@ -118,7 +118,7 @@ func (p *printer) yaml(a ...any) {
encoder := yaml.NewEncoder(&buf)
encoder.SetIndent(p.indent)
if err := encoder.Encode(i); err != nil {
stdLogger.Log.Debug(err.Error(), DefaultField(i))
stdLogger.Log.Debug(err.Error())
return
}
fmt.Fprintf(os.Stdout, "%s", buf.String())
Expand Down

0 comments on commit df725c8

Please sign in to comment.