From a0e8131972fbc71edacc84acd1cf58034ceac71e Mon Sep 17 00:00:00 2001 From: anlicheng Date: Thu, 27 Jul 2023 17:07:23 +0800 Subject: [PATCH] add debug --- apps/iot/src/iot_host.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index 53ab857..560ba57 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -285,6 +285,7 @@ handle_event(cast, {handle, {ping, CipherMetric}}, session, State = #state{uuid end; handle_event(cast, {handle, {inform, Info0}}, session, State = #state{host_id = HostId, aes = AES}) -> + lager:debug("[iot_host] handler inform, aes: ~p", [AES]), Info = iot_cipher_aes:decrypt(AES, Info0), case catch jiffy:decode(Info, [return_maps]) of #{<<"at">> := At, <<"services">> := ServiceInforms} ->