# HG changeset patch # User Matthew Wild # Date 1254867241 -3600 # Node ID 3884a0aac4d7f19f7243c8126afe179ba37d90df # Parent af8cdbb63b13a7ff9cf376a339606f9bb41686f2 modulemanager: Bump log level of unhandled non-default-namespace elements, and log their full XML diff -r af8cdbb63b13 -r 3884a0aac4d7 core/modulemanager.lua --- 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