diff options
author | nolan <nolan@nolan-eee> | 2009-06-28 11:49:25 -0500 |
---|---|---|
committer | nolan <nolan@nolan-eee> | 2009-06-28 11:49:25 -0500 |
commit | 3745df51baa93976e6a1275072fd41123eac0ecf (patch) | |
tree | 762650ddbd89b86e198aaeb1063fcaafc8be9898 | |
parent | f7672bd5078988da630ee66844433e5a3c2476bf (diff) | |
download | prosody-3745df51baa93976e6a1275072fd41123eac0ecf.tar.gz prosody-3745df51baa93976e6a1275072fd41123eac0ecf.zip |
Serialize unknown stanza before logging.
-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 |