1
0
mirror of https://github.com/Luzifer/mqttcli.git synced 2024-09-18 23:42:58 +00:00

Fix: Print newline after each CSV line

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-07-29 23:27:58 +02:00
parent ddf29ffadb
commit 25539c8267
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -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(),