mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-01 17:53:00 +01:00
mod_push: Add/adjust debug messages
This commit is contained in:
parent
ec819b4002
commit
e5cb9dad40
@ -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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user