diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-06 23:14:01 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-06 23:14:01 +0100 |
commit | 9ff673912fe98fee29125ed928d254dd1abae20b (patch) | |
tree | d22339061617ab33e511102a262a313db4c0c083 /core | |
parent | 2f726a9d3b201adf0ba97baa748cd9abd53e078e (diff) | |
download | prosody-9ff673912fe98fee29125ed928d254dd1abae20b.tar.gz prosody-9ff673912fe98fee29125ed928d254dd1abae20b.zip |
modulemanager: Bump log level of unhandled non-default-namespace elements, and log their full XML
Diffstat (limited to 'core')
-rw-r--r-- | core/modulemanager.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 0b5f0351..383b9d37 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -247,12 +247,13 @@ function handle_stanza(host, origin, stanza) (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 |