Changeset

2075:b4bfa6cb3d83

componentmanager: Improved logging for stanzas being bounced for unavailable components.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 12 Nov 2009 13:33:46 +0500
parents 2074:c59c8f3ec645
children 2076:de2ae849b0b3
files core/componentmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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