componentmanager: Small logging fix

Sat, 11 Apr 2009 22:24:44 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 11 Apr 2009 22:24:44 +0100
changeset 983
460429a59c83
parent 982
dbbeb73952e6
child 984
9acc1c2ceb2c

componentmanager: Small logging fix

core/componentmanager.lua file | annotate | diff | comparison | revisions
--- a/core/componentmanager.lua	Sat Apr 11 22:23:49 2009 +0100
+++ b/core/componentmanager.lua	Sat Apr 11 22:24:44 2009 +0100
@@ -69,7 +69,7 @@
 	if not component then component = components[node.."@"..host]; end -- hack to allow hooking node@server
 	if not component then component = components[host]; end
 	if component then
-		log("debug", "stanza being handled by component: "..host);
+		log("debug", "%s stanza being handled by component: %s", stanza.name, host);
 		component(origin, stanza, hosts[host]);
 	else
 		log("error", "Component manager recieved a stanza for a non-existing component: " .. stanza.attr.to);

mercurial