From 0d30cd471e049a00ab74a814d7920d746707f10a Mon Sep 17 00:00:00 2001 From: anlicheng Date: Thu, 7 Sep 2023 11:10:02 +0800 Subject: [PATCH] fix --- apps/iot/src/postman/mqtt_postman.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/iot/src/postman/mqtt_postman.erl b/apps/iot/src/postman/mqtt_postman.erl index 8a6ae34..e9d68fd 100644 --- a/apps/iot/src/postman/mqtt_postman.erl +++ b/apps/iot/src/postman/mqtt_postman.erl @@ -99,7 +99,7 @@ handle_info({puback, #{packet_id := PacketId}}, State = #state{inflight = Inflig %% 转发信息 handle_info({post, ReceiverPid, #post_data{id = Id, location_code = LocationCode, body = Message}}, State = #state{conn_pid = ConnPid, inflight = InFlight, topic = Topic0, qos = Qos}) -> Topic = re:replace(Topic0, <<"\\${location_code}">>, LocationCode, [global, {return, binary}]), - lager:debug("[mqtt_postman] will publish topic: ~p, message: ~p, qos: ~p", [Topic, Message, Qos]), + lager:debug("[mqtt_postman] will publish topic: ~p, message: ~ts, qos: ~p", [Topic, Message, Qos]), case emqtt:publish(ConnPid, Topic, #{}, Message, [{qos, Qos}, {retain, true}]) of ok -> ReceiverPid ! {ack, Id},