Skip to content

Commit

Permalink
Fix bug in simple printer: missing space
Browse files Browse the repository at this point in the history
  • Loading branch information
jjeffery committed Jan 17, 2019
1 parent fae2f0d commit 86a7244
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kvlog/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (p *simplePrinter) Print(msg *logEntry) {
}
buf.Write(msg.Text)
for i := 0; i < len(msg.List); i += 2 {
buf.WriteRune(' ')
logfmt.WriteKeyValue(buf, msg.List[i], msg.List[i+1])
}
buf.WriteRune('\n')
Expand Down

0 comments on commit 86a7244

Please sign in to comment.