This commit is contained in:
anlicheng 2024-12-20 10:16:32 +08:00
parent c2ca75ba16
commit 38b7e5a5cd

View File

@ -130,10 +130,12 @@ handle_cast({forward, LocationCode, DynamicLocationCode, EventType, Params},
{noreply, State#state{fail_counter = FailCounter + 1}} {noreply, State#state{fail_counter = FailCounter + 1}}
end; end;
false -> false ->
iot_logger:write(LoggerPid, [<<"DISCARD">>, list_to_binary(Url1), Body]) iot_logger:write(LoggerPid, [<<"DISCARD">>, list_to_binary(Url1), Body]),
{noreply, State#state{fail_counter = FailCounter + 1}}
end; end;
error -> error ->
lager:notice("[iot_donghuoliren_endpoint] format_event error, message is: ~p", [Params]) lager:notice("[iot_donghuoliren_endpoint] format_event error, message is: ~p", [Params]),
{noreply, State#state{fail_counter = FailCounter + 1}}
end. end.
%% @private %% @private