add debug
This commit is contained in:
parent
ba9320fb19
commit
60136212d4
@ -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.
|
||||
Loading…
x
Reference in New Issue
Block a user