Changeset

1772:c0ba9cd6ee63

ComponentManager: Fixed a bit of logging.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 11 Sep 2009 16:17:18 +0500
parents 1771:39e6b986ef01
children 1773:f47aa1d336b5
files core/componentmanager.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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