Skip to content

Commit

Permalink
Don't use Printf if we aren't prefixing the logs.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
  • Loading branch information
jcollie authored and alexellis committed May 3, 2022
1 parent 7809452 commit 92353ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func bindLoggingPipe(name string, pipe io.Reader, output io.Writer, logPrefix bo
if logPrefix {
logger.Printf("%s: %s", name, scanner.Text())
} else {
logger.Printf("%s", scanner.Text())
logger.Print(scanner.Text())
}
}
if err := scanner.Err(); err != nil {
Expand Down

0 comments on commit 92353ab

Please sign in to comment.