aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-06 23:14:01 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-06 23:14:01 +0100
commit9ff673912fe98fee29125ed928d254dd1abae20b (patch)
treed22339061617ab33e511102a262a313db4c0c083 /core
parent2f726a9d3b201adf0ba97baa748cd9abd53e078e (diff)
downloadprosody-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.lua3
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