1
0
Fork 0
mirror of https://github.com/Luzifer/mqttcli.git synced 2024-11-08 14:50:11 +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(),