Skip to content

Commit 5e0155f

Browse files
hmonsalvUnix4ever
authored andcommitted
fix: add trailing new line when writing to logger
Add a new line character when writing to the logger in order to ensure proper formatting of log messages. Signed-off-by: Hector Monsalve <hmonsalv@gmail.com>
1 parent abfc570 commit 5e0155f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

support/bundle/bundle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (a *archive) Close() error {
8383
// Log writes the line to logger or to stdout if no logger was provided.
8484
func (options *Options) Log(line string, args ...interface{}) {
8585
if options.LogOutput != nil {
86-
fmt.Fprintf(options.LogOutput, line, args...) //nolint:errcheck
86+
fmt.Fprintf(options.LogOutput, line+"\n", args...) //nolint:errcheck
8787

8888
return
8989
}

0 commit comments

Comments
 (0)