fix
This commit is contained in:
parent
e1e2a09b21
commit
ba9320fb19
@ -98,7 +98,7 @@ callback_mode() ->
|
|||||||
handle_event(cast, {forward, LocationCode, DynamicLocationCode, Fields, Timestamp}, StateName, State = #state{is_busy = IsBusy, iot_queue = Q}) ->
|
handle_event(cast, {forward, LocationCode, DynamicLocationCode, Fields, Timestamp}, StateName, State = #state{is_busy = IsBusy, iot_queue = Q}) ->
|
||||||
case iot_queue:is_full(Q) of
|
case iot_queue:is_full(Q) of
|
||||||
true ->
|
true ->
|
||||||
lager:debug("[iot_zd_endpoint] queue is full discard data: ~p", [{LocationCode, DynamicLocationCode, Fields, Timestamp}]),
|
lager:notice("[iot_zd_endpoint] queue is full discard data: ~p", [{LocationCode, DynamicLocationCode, Fields, Timestamp}]),
|
||||||
{keep_state, State};
|
{keep_state, State};
|
||||||
false ->
|
false ->
|
||||||
case format_data(LocationCode, DynamicLocationCode, Fields, Timestamp) of
|
case format_data(LocationCode, DynamicLocationCode, Fields, Timestamp) of
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user