XEP-0198: Log debug message when dropping stanza

Log a debug message when an unacknowledged message is neither resent nor
bounced because it's archived.
This commit is contained in:
Holger Weiss 2016-07-23 01:23:24 +02:00
parent 814b80c644
commit d4d1941133
1 changed files with 3 additions and 0 deletions

View File

@ -2951,6 +2951,9 @@ handle_unacked_stanzas(#state{mgmt_state = MgmtState} = StateData)
[StateData, From,
StateData#state.jid, El]) of
true ->
?DEBUG("Dropping archived message stanza from ~s",
[fxml:get_attr_s(<<"from">>,
El#xmlel.attrs)]),
ok;
false ->
ReRoute(From, To, El, Time)