Software /
code /
prosody
Diff
core/modulemanager.lua @ 1933:3884a0aac4d7
modulemanager: Bump log level of unhandled non-default-namespace elements, and log their full XML
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 06 Oct 2009 23:14:01 +0100 |
parent | 1908:27c1c6e6c583 |
child | 1946:0eb3835ef9bf |
line wrap: on
line diff
--- a/core/modulemanager.lua Tue Oct 06 19:17:28 2009 +0100 +++ b/core/modulemanager.lua Tue Oct 06 23:14:01 2009 +0100 @@ -247,12 +247,13 @@ (handlers[1])(origin, stanza); return true; else - log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin.type, stanza.name, xmlns); -- we didn't handle it if stanza.attr.xmlns == "jabber:client" then + log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin.type, stanza.name, xmlns); -- we didn't handle it if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); end elseif not((name == "features" or name == "error") and xmlns == "http://etherx.jabber.org/streams") then -- FIXME remove check once we handle S2S features + log("warn", "Unhandled %s stream element: %s; xmlns=%s: %s", origin.type, stanza.name, xmlns, tostring(stanza)); -- we didn't handle it origin:close("unsupported-stanza-type"); end end