From 9894d9990820c842093c63f7cf672d9ac258789c Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Sun, 24 Dec 2023 16:04:03 +0800 Subject: [PATCH] fix --- apps/iot/src/iot_api.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/iot/src/iot_api.erl b/apps/iot/src/iot_api.erl index c3ea881..8ae4f92 100644 --- a/apps/iot/src/iot_api.erl +++ b/apps/iot/src/iot_api.erl @@ -85,6 +85,7 @@ handle_cast({ai_event, Id}, State = #state{}) -> case hackney:request(post, Url, Headers, Body, [{pool, false}]) of {ok, 200, _, ClientRef} -> {ok, RespBody} = hackney:body(ClientRef), + lager:debug("[iot_api] send body: ~p, get error is: ~p", [Body, RespBody]), hackney:close(ClientRef); {ok, HttpCode, _, ClientRef} -> {ok, RespBody} = hackney:body(ClientRef),