Comparison

core/stanza_router.lua @ 2460:2a80ba15c210

stanza_router: Log the name of unhandled stanzas (thanks bear)
author Matthew Wild <mwild1@gmail.com>
date Mon, 18 Jan 2010 16:31:57 +0000
parent 2132:20a52cfda988
child 2530:26c1f27eb35d
comparison
equal deleted inserted replaced
2459:66f60e69567b 2460:2a80ba15c210
189 elseif origin.type == "component" or origin.type == "local" then 189 elseif origin.type == "component" or origin.type == "local" then
190 -- Route via s2s for components and modules 190 -- Route via s2s for components and modules
191 log("debug", "Routing outgoing stanza for %s to %s", from_host, host); 191 log("debug", "Routing outgoing stanza for %s to %s", from_host, host);
192 send_s2s(from_host, host, stanza); 192 send_s2s(from_host, host, stanza);
193 else 193 else
194 log("warn", "received stanza from unhandled connection type: %s", origin.type); 194 log("warn", "received %s stanza from unhandled connection type: %s", tostring(stanza.name), tostring(origin.type));
195 end 195 end
196 end 196 end