only add a space between text entries if there is already content

So we don't have a trailing space at the end of each log line
This commit is contained in:
dmathieu
2017-07-21 16:14:28 +02:00
parent b264ba77c3
commit 159e991025
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ func TestFormatting(t *testing.T) {
value string
expected string
}{
{`foo`, "time=\"0001-01-01T00:00:00Z\" level=panic test=foo \n"},
{`foo`, "time=\"0001-01-01T00:00:00Z\" level=panic test=foo\n"},
}
for _, tc := range testCases {