Skip to content

Commit

Permalink
Trim logs in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-tra committed Mar 21, 2021
1 parent cf3a8a7 commit 256b1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func Infor(format string, a ...interface{}) {
fmt.Fprint(Out, fmt.Sprintf("%s%s", blank, fmt.Sprintf(format, a...)))
} else {
printTimestamp()
fmt.Fprintln(Out, fmt.Sprintf(format, a...))
fmt.Fprintln(Out, fmt.Sprintf(strings.TrimSpace(format), a...))
}
}

Expand Down

0 comments on commit 256b1f0

Please sign in to comment.