stanza_router: Log the name of unhandled stanzas (thanks bear)

Mon, 18 Jan 2010 16:31:57 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 18 Jan 2010 16:31:57 +0000
changeset 2833
a82bd02d5918
parent 2832
8c754c61c72e
child 2834
f5cd7ee409eb

stanza_router: Log the name of unhandled stanzas (thanks bear)

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Mon Jan 11 18:59:06 2010 +0500
+++ b/core/stanza_router.lua	Mon Jan 18 16:31:57 2010 +0000
@@ -191,6 +191,6 @@
 		log("debug", "Routing outgoing stanza for %s to %s", from_host, host);
 		send_s2s(from_host, host, stanza);
 	else
-		log("warn", "received stanza from unhandled connection type: %s", origin.type);
+		log("warn", "received %s stanza from unhandled connection type: %s", tostring(stanza.name), tostring(origin.type));
 	end
 end

mercurial