add debug

This commit is contained in:
anlicheng 2024-08-08 12:27:52 +08:00
parent ba9320fb19
commit 60136212d4

View File

@ -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.