add debug
This commit is contained in:
parent
20b2bda91f
commit
6fc790db68
@ -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};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user