aboutsummaryrefslogtreecommitdiffstats
path: root/core/componentmanager.lua
diff options
context:
space:
mode:
authornolan <nolan@nolan-eee>2009-06-28 11:49:25 -0500
committernolan <nolan@nolan-eee>2009-06-28 11:49:25 -0500
commit3745df51baa93976e6a1275072fd41123eac0ecf (patch)
tree762650ddbd89b86e198aaeb1063fcaafc8be9898 /core/componentmanager.lua
parentf7672bd5078988da630ee66844433e5a3c2476bf (diff)
downloadprosody-3745df51baa93976e6a1275072fd41123eac0ecf.tar.gz
prosody-3745df51baa93976e6a1275072fd41123eac0ecf.zip
Serialize unknown stanza before logging.
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