aboutsummaryrefslogtreecommitdiffstats
path: root/core/componentmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-06-29 14:10:11 +0100
committerMatthew Wild <mwild1@gmail.com>2009-06-29 14:10:11 +0100
commit9ae52811fea92946f5377eb2c3fcadfe22700aca (patch)
tree87d714376ad0002da042c540c8ae046eed44201f /core/componentmanager.lua
parent7422c11cfa3619fe768daf8e8e076ec6ef35823f (diff)
parent3745df51baa93976e6a1275072fd41123eac0ecf (diff)
downloadprosody-9ae52811fea92946f5377eb2c3fcadfe22700aca.tar.gz
prosody-9ae52811fea92946f5377eb2c3fcadfe22700aca.zip
Merge with nolan
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r--core/componentmanager.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua
index e375e3bd..970cdd86 100644
--- a/core/componentmanager.lua
+++ b/core/componentmanager.lua
@@ -17,6 +17,7 @@ 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;
@@ -75,7 +76,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 stanza));
+ log("error", "Component manager recieved a stanza for a non-existing component: " .. (stanza.attr.to or serialize(stanza)));
end
end