From 25539c82671802a9c3e1986a5aeb79263a44e065 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 29 Jul 2019 23:27:58 +0200 Subject: [PATCH] Fix: Print newline after each CSV line Signed-off-by: Knut Ahlers --- mqtt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt.go b/mqtt.go index 6fe665a..ea9d36a 100644 --- a/mqtt.go +++ b/mqtt.go @@ -74,7 +74,7 @@ func subscribeCallbackLog(client mqtt.Client, msg mqtt.Message) { } func subscribeCallbackCSV(client mqtt.Client, msg mqtt.Message) { - fmt.Printf("%s,%d,%v,%q", + fmt.Printf("%s,%d,%v,%q\n", msg.Topic(), msg.Qos(), msg.Retained(),