mod_push: Add/adjust debug messages

This commit is contained in:
Holger Weiss 2018-04-16 18:12:46 +02:00
parent ec819b4002
commit e5cb9dad40
1 changed files with 2 additions and 1 deletions

View File

@ -336,6 +336,7 @@ c2s_stanza(State, #stream_error{}, _SendResult) ->
State;
c2s_stanza(#{push_enabled := true, mgmt_state := pending} = State,
_Pkt, _SendResult) ->
?DEBUG("Notifying client of stanza", []),
notify(State),
State;
c2s_stanza(State, _Pkt, _SendResult) ->
@ -377,7 +378,7 @@ offline_message(#message{to = #jid{luser = LUser, lserver = LServer}} = Pkt) ->
c2s_session_pending(#{push_enabled := true, mgmt_queue := Queue} = State) ->
case p1_queue:len(Queue) of
Len when Len > 0 ->
?DEBUG("Notifying client of unacknowledged messages", []),
?DEBUG("Notifying client of unacknowledged stanza(s)", []),
notify(State),
State;
0 ->