# HG changeset patch # User nolan@nolan-eee # Date 1246194597 18000 # Node ID b5d4db71ef1ac37e21ad090c9e35323fca00144d # Parent 5e72c3e1743abbc775670422aeb5eb8df2c2469f Log stanza if stanza.to isn't set for some component errors. diff -r 5e72c3e1743a -r b5d4db71ef1a core/componentmanager.lua --- a/core/componentmanager.lua Fri Jun 26 15:35:20 2009 +0100 +++ b/core/componentmanager.lua Sun Jun 28 08:09:57 2009 -0500 @@ -75,7 +75,7 @@ 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); + log("error", "Component manager recieved a stanza for a non-existing component: " .. (stanza.attr.to or stanza)); end end