Comparison

core/componentmanager.lua @ 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
parent 1992:bbaba17537a9
child 2323:b7f683c55a44
comparison
equal deleted inserted replaced
2074:c59c8f3ec645 2075:b4bfa6cb3d83
24 local NULL = {}; 24 local NULL = {};
25 25
26 module "componentmanager" 26 module "componentmanager"
27 27
28 local function default_component_handler(origin, stanza) 28 local function default_component_handler(origin, stanza)
29 log("warn", "Stanza being handled by default component, bouncing error"); 29 log("warn", "Stanza being handled by default component; bouncing error for: %s", stanza:top_tag());
30 if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then 30 if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then
31 origin.send(st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable")); 31 origin.send(st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable"));
32 end 32 end
33 end 33 end
34 34