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