This commit is contained in:
anlicheng 2023-12-04 14:36:52 +08:00
parent 714ec1e734
commit cbd8cf504c

View File

@ -18,9 +18,9 @@ route_uuid(RouterUUID, Fields, Timestamp) when is_binary(RouterUUID), is_list(Fi
%% %%
case redis_client:hget(RouterUUID, <<"location_code">>) of case redis_client:hget(RouterUUID, <<"location_code">>) of
{ok, undefined} -> {ok, undefined} ->
lager:warning("[iot_host] the north_data hget location_code, uuid: ~p, not found", [RouterUUID]); lager:warning("[iot_host] the north_data hget location_code, uuid: ~p, not found, fields: ~p", [RouterUUID, Fields]);
{ok, LocationCode} when is_binary(LocationCode) -> {ok, LocationCode} when is_binary(LocationCode) ->
iot_zd_endpoint:forward(LocationCode, Fields, Timestamp); iot_zd_endpoint:forward(LocationCode, Fields, Timestamp);
{error, Reason} -> {error, Reason} ->
lager:warning("[iot_host] the north_data hget location_code uuid: ~p, get error: ~p", [RouterUUID, Reason]) lager:warning("[iot_host] the north_data hget location_code uuid: ~p, get error: ~p, fields: ~p", [RouterUUID, Reason, Fields])
end. end.