]> Cypherpunks repositories - gostls13.git/commit
log: logging an empty string should still print a line
authorRob Pike <r@golang.org>
Wed, 8 Apr 2015 21:55:45 +0000 (14:55 -0700)
committerRob Pike <r@golang.org>
Thu, 9 Apr 2015 17:02:27 +0000 (17:02 +0000)
commitd340b10366a0ce9425365ca233c5b6636c62faaa
tree492b44e4caae93231d3155897a5c0ee66de1c5c9
parentd64617fc0a537d9783f03ef5c97eaee7d0e7de17
log: logging an empty string should still print a line

Print("") was printing a header but no line.

Fixes #9665.

Change-Id: Iac783187786065e1389ad6e8d7ef02c579ed7bd8
Reviewed-on: https://go-review.googlesource.com/8665
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/log/log.go
src/log/log_test.go