aboutsummaryrefslogtreecommitdiffstats
path: root/core/componentmanager.lua
diff options
context:
space:
mode:
authornolan <nolan@nolan-eee>2009-06-28 08:09:57 -0500
committernolan <nolan@nolan-eee>2009-06-28 08:09:57 -0500
commitf7672bd5078988da630ee66844433e5a3c2476bf (patch)
treec817c0dc084fb859e5e3d65ffddecb465bc60bde /core/componentmanager.lua
parenta01f4e62493a01afa9813c2197596854b62c7b71 (diff)
downloadprosody-f7672bd5078988da630ee66844433e5a3c2476bf.tar.gz
prosody-f7672bd5078988da630ee66844433e5a3c2476bf.zip
Log stanza if stanza.to isn't set for some component errors.
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r--core/componentmanager.lua2
1 files changed, 1 insertions, 1 deletions
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