X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=core%2Fcomponentmanager.lua;h=08868236e76a8c7f1ef36f1c6897947bed020c85;hb=6e79e1d5057bdf86672b624f3c548b53808da69c;hp=e375e3bd8b517552f44686375d0fa09eb57fca98;hpb=b1736e17f962bf1f1239bfb13fe42e6c509c52b6;p=prosody.git diff --git a/core/componentmanager.lua b/core/componentmanager.lua index e375e3bd..08868236 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -1,4 +1,4 @@ --- Prosody IM v0.4 +-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- @@ -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