]> granicus.if.org Git - ejabberd/commitdiff
mod_push: Add/adjust debug messages
authorHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 16 Apr 2018 16:12:46 +0000 (18:12 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 16 Apr 2018 16:12:46 +0000 (18:12 +0200)
src/mod_push.erl

index 1929e5f8685cacb38ec8cadebf97e7a7c275577a..36687d18abe743e5866d5c38c7658800a16ad6b7 100644 (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 ->