ComponentManager: Fixed a bit of logging.

Fri, 11 Sep 2009 16:17:18 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 11 Sep 2009 16:17:18 +0500
changeset 1772
c0ba9cd6ee63
parent 1771
39e6b986ef01
child 1773
f47aa1d336b5

ComponentManager: Fixed a bit of logging.

core/componentmanager.lua file | annotate | diff | comparison | revisions
--- a/core/componentmanager.lua	Fri Sep 11 03:13:56 2009 +0100
+++ b/core/componentmanager.lua	Fri Sep 11 16:17:18 2009 +0500
@@ -15,7 +15,6 @@
 local events_new = require "util.events".new;
 local st = require "util.stanza";
 local hosts = hosts;
-local serialize = require "util.serialization".serialize
 
 local pairs, type, tostring = pairs, type, tostring;
 
@@ -66,7 +65,7 @@
 		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 or serialize(stanza)));
+		log("error", "Component manager recieved a stanza for a non-existing component: "..tostring(stanza));
 	end
 end
 

mercurial