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