From 254e0157078264108ec7f8ea35c1f8e6b0cf9a31 Mon Sep 17 00:00:00 2001 From: anlicheng Date: Wed, 26 Jul 2023 10:25:04 +0800 Subject: [PATCH] add debug --- apps/iot/src/iot_host.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index 9b9a9ab..204ca3f 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -246,6 +246,7 @@ handle_event(cast, {handle, {data, Data}}, session, State = #state{uuid = UUID, Info = #{<<"service_name">> := ServiceName, <<"at">> := Timestamp, <<"fields">> := FieldsList, <<"tags">> := Tags} when is_binary(ServiceName) -> %% 查找终端设备对应的点位信息 RouterUUID = router_uuid(Info, UUID), + lager:debug("[iot_host] host: ~p, router_uuid: ~p, get data: ~p", [UUID, RouterUUID, Data]), case mnesia_kv:hget(RouterUUID, <<"location_code">>) of none -> lager:debug("[iot_host] the north_data hget location_code uuid: ~p, router_uuid: ~p, not found", [UUID, RouterUUID]);