aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-09-11 16:17:18 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-09-11 16:17:18 +0500
commit626df97d77ac7c933b988d2741c0b8627ba0d30a (patch)
treef655d149aba51d0e1f704d3cff8bc65dffb4b40c
parent1567dc6014dedfb912b0b75ae88b4e7191453adc (diff)
downloadprosody-626df97d77ac7c933b988d2741c0b8627ba0d30a.tar.gz
prosody-626df97d77ac7c933b988d2741c0b8627ba0d30a.zip
ComponentManager: Fixed a bit of logging.
-rw-r--r--core/componentmanager.lua3
1 files changed, 1 insertions, 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