diff --git a/apps/iot/src/consumer/iot_zd_consumer.erl b/apps/iot/src/consumer/iot_zd_consumer.erl index cdca9cb..7577712 100644 --- a/apps/iot/src/consumer/iot_zd_consumer.erl +++ b/apps/iot/src/consumer/iot_zd_consumer.erl @@ -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}};