OnPublished add display topic
This commit is contained in:
parent
c3e7360019
commit
5aeab97385
@ -101,7 +101,7 @@ func (h *MqttServerHook) OnPublish(cl *mqttServerV2.Client, pk packets.Packet) (
|
||||
}
|
||||
|
||||
func (h *MqttServerHook) OnPublished(cl *mqttServerV2.Client, pk packets.Packet) {
|
||||
h.Log.Info("published to client", "client", cl.ID, "payload", string(pk.Payload))
|
||||
h.Log.Info("published to client", "client", cl.ID, "topic", pk.TopicName, "payload", string(pk.Payload))
|
||||
}
|
||||
|
||||
// OnConnectAuthenticate returns true/allowed for all requests.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user