]> granicus.if.org Git - ejabberd/commitdiff
XEP-0198: Don't warn on invalid ACK elements
authorHolger Weiss <holger@zedat.fu-berlin.de>
Fri, 9 May 2014 15:54:12 +0000 (17:54 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Fri, 9 May 2014 15:54:12 +0000 (17:54 +0200)
Do not log a warning (but only a debug message) if the client sends an
invalid </a> packet.  Some clients do that occasionally, and there's
nothing server admininistrators could do about that.

src/ejabberd_c2s.erl

index 8874c48ad7c2e2b1f89dc3a5910bb50c4e9380a0..5fb81d1f5fa1b479e0b72182b626f1c3e4c0d629 100644 (file)
@@ -2694,8 +2694,8 @@ handle_a(#state{jid = JID, mgmt_stanzas_out = NumStanzasOut} = StateData,
                 [jlib:jid_to_string(JID), H, NumStanzasOut]),
          mgmt_queue_drop(StateData, H);
       _ ->
-         ?WARNING_MSG("Ignoring invalid ACK element from ~s",
-                      [jlib:jid_to_string(JID)]),
+         ?DEBUG("Ignoring invalid ACK element from ~s",
+                [jlib:jid_to_string(JID)]),
          StateData
     end.