componentmanager: Improved logging for stanzas being bounced for unavailable components.

Thu, 12 Nov 2009 13:33:46 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 12 Nov 2009 13:33:46 +0500
changeset 2075
b4bfa6cb3d83
parent 2074
c59c8f3ec645
child 2076
de2ae849b0b3

componentmanager: Improved logging for stanzas being bounced for unavailable components.

core/componentmanager.lua file | annotate | diff | comparison | revisions
--- a/core/componentmanager.lua	Sun Nov 08 15:25:03 2009 +0000
+++ b/core/componentmanager.lua	Thu Nov 12 13:33:46 2009 +0500
@@ -26,7 +26,7 @@
 module "componentmanager"
 
 local function default_component_handler(origin, stanza)
-	log("warn", "Stanza being handled by default component, bouncing error");
+	log("warn", "Stanza being handled by default component; bouncing error for: %s", stanza:top_tag());
 	if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then
 		origin.send(st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable"));
 	end

mercurial