This commit is contained in:
anlicheng 2023-12-25 15:23:07 +08:00
parent 812ed100ed
commit d33893d7a5

View File

@ -159,7 +159,7 @@ handle_info({directive_reply, Reply}, State = #state{logger_pid = LoggerPid, fli
case Reply of
{ok, RawReq, DirectiveResult} ->
iot_logger:write(LoggerPid, [<<"[success]">>, RawReq, DirectiveResult, FlightInfo]);
{error, {RawReq, Error}} ->
{error, RawReq, Error} ->
iot_logger:write(LoggerPid, [<<"[error]">>, RawReq, Error, FlightInfo])
end,
{noreply, State#state{flight_num = FlightNum - 1}};