diff options
-rw-r--r-- | core/componentmanager.lua | 3 |
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 |