Skip to content
Snippets Groups Projects
Commit 647c8577 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Added topic (more to come)

parent 9d5e4ba9
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ func mqttDumpMsg(msg mqtt.Message) { ...@@ -34,7 +34,7 @@ func mqttDumpMsg(msg mqtt.Message) {
var data map[string]interface{} var data map[string]interface{}
err := json.Unmarshal(msg.Payload(), &data) err := json.Unmarshal(msg.Payload(), &data)
if err != nil { if err != nil {
slog.Error("Error decoding JSON %v", "err", err) slog.Error("Error decoding JSON %v", "topic", msg.Topic(), "err", err)
} }
// sort keys // sort keys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment