add debug

This commit is contained in:
anlicheng 2023-07-26 10:25:04 +08:00
parent a931cac2f6
commit 254e015707

View File

@ -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]);