From 626df97d77ac7c933b988d2741c0b8627ba0d30a Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 11 Sep 2009 16:17:18 +0500 Subject: ComponentManager: Fixed a bit of logging. --- core/componentmanager.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/componentmanager.lua b/core/componentmanager.lua index 536d1633..086b9eab 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -15,7 +15,6 @@ local jid_split = require "util.jid".split; 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 @@ function handle_stanza(origin, stanza) 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 -- cgit v1.2.3