diff --git a/apps/iot/src/iot_router.erl b/apps/iot/src/iot_router.erl index 5d46a78..9364ec6 100644 --- a/apps/iot/src/iot_router.erl +++ b/apps/iot/src/iot_router.erl @@ -18,9 +18,9 @@ route_uuid(RouterUUID, Fields, Timestamp) when is_binary(RouterUUID), is_list(Fi %% 查找终端设备对应的点位信息 case redis_client:hget(RouterUUID, <<"location_code">>) of {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) -> iot_zd_endpoint:forward(LocationCode, Fields, Timestamp); {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. \ No newline at end of file