From cbd8cf504c62a480f0329d2cbbca295c597f1b2c Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Mon, 4 Dec 2023 14:36:52 +0800 Subject: [PATCH] fix --- apps/iot/src/iot_router.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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