add debug

This commit is contained in:
anlicheng 2025-06-26 15:10:55 +08:00
parent 20b2bda91f
commit 6fc790db68

View File

@ -106,7 +106,7 @@ handle_call(_Request, _From, State) ->
handle_cast({push, Notifications}, State = #state{apns_pid = ApnsPid, headers = Headers}) -> handle_cast({push, Notifications}, State = #state{apns_pid = ApnsPid, headers = Headers}) ->
lists:foreach(fun(#{<<"device_token">> := DeviceToken, <<"title">> := Title, <<"body">> := Body, <<"custom_data">> := CustomData}) -> lists:foreach(fun(#{<<"device_token">> := DeviceToken, <<"title">> := Title, <<"body">> := Body, <<"custom_data">> := CustomData}) ->
PushResult = push_task(ApnsPid, DeviceToken, Title, Body, CustomData, Headers), PushResult = push_task(ApnsPid, DeviceToken, Title, Body, CustomData, Headers),
lager:debug("[dimension_apn_pusher] push result is: ~p", [PushResult]) lager:debug("[dimension_apn_pusher] device_token: ~p, push result is: ~p", [DeviceToken, PushResult])
end, Notifications), end, Notifications),
{noreply, State}; {noreply, State};