From f7672bd5078988da630ee66844433e5a3c2476bf Mon Sep 17 00:00:00 2001 From: nolan Date: Sun, 28 Jun 2009 08:09:57 -0500 Subject: Log stanza if stanza.to isn't set for some component errors. --- core/componentmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/componentmanager.lua b/core/componentmanager.lua index eb18fced..e375e3bd 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -75,7 +75,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); + log("error", "Component manager recieved a stanza for a non-existing component: " .. (stanza.attr.to or stanza)); end end -- cgit v1.2.3