From 3745df51baa93976e6a1275072fd41123eac0ecf Mon Sep 17 00:00:00 2001 From: nolan Date: Sun, 28 Jun 2009 11:49:25 -0500 Subject: Serialize unknown stanza before logging. --- core/componentmanager.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') 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 -- cgit v1.2.3