From 60136212d4c6897424f948d3d31d10675610c835 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Thu, 8 Aug 2024 12:27:52 +0800 Subject: [PATCH] add debug --- apps/iot/src/endpoint/iot_zd_endpoint.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/iot/src/endpoint/iot_zd_endpoint.erl b/apps/iot/src/endpoint/iot_zd_endpoint.erl index ded6847..ccc1270 100644 --- a/apps/iot/src/endpoint/iot_zd_endpoint.erl +++ b/apps/iot/src/endpoint/iot_zd_endpoint.erl @@ -251,6 +251,7 @@ format_data(LocationCode, DynamicLocationCode, Fields, Timestamp) when is_binary try Body = iolist_to_binary(jiffy:encode(Data, [force_utf8])), {ok, Body} - catch _:_ -> + catch _:Reason -> + lager:warning("[iot_zd_endpoint] location_code: ~p, format_data get error: ~p", LocationCode, Reason), error end. \ No newline at end of file