Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
1932:af8cdbb63b13 | 1933:3884a0aac4d7 |
---|---|
245 if handlers then | 245 if handlers then |
246 log("debug", "Passing stanza to mod_%s", handler_info[handlers[1]].name); | 246 log("debug", "Passing stanza to mod_%s", handler_info[handlers[1]].name); |
247 (handlers[1])(origin, stanza); | 247 (handlers[1])(origin, stanza); |
248 return true; | 248 return true; |
249 else | 249 else |
250 log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin.type, stanza.name, xmlns); -- we didn't handle it | |
251 if stanza.attr.xmlns == "jabber:client" then | 250 if stanza.attr.xmlns == "jabber:client" then |
251 log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin.type, stanza.name, xmlns); -- we didn't handle it | |
252 if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then | 252 if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then |
253 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); | 253 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); |
254 end | 254 end |
255 elseif not((name == "features" or name == "error") and xmlns == "http://etherx.jabber.org/streams") then -- FIXME remove check once we handle S2S features | 255 elseif not((name == "features" or name == "error") and xmlns == "http://etherx.jabber.org/streams") then -- FIXME remove check once we handle S2S features |
256 log("warn", "Unhandled %s stream element: %s; xmlns=%s: %s", origin.type, stanza.name, xmlns, tostring(stanza)); -- we didn't handle it | |
256 origin:close("unsupported-stanza-type"); | 257 origin:close("unsupported-stanza-type"); |
257 end | 258 end |
258 end | 259 end |
259 end | 260 end |
260 | 261 |