Log stanza if stanza.to isn't set for some component errors.

Sun, 28 Jun 2009 08:09:57 -0500

author
nolan@nolan-eee
date
Sun, 28 Jun 2009 08:09:57 -0500
changeset 1434
b5d4db71ef1a
parent 1423
5e72c3e1743a
child 1436
064cb5328ac5
child 1442
df9d78544f34

Log stanza if stanza.to isn't set for some component errors.

core/componentmanager.lua file | annotate | diff | comparison | revisions
--- 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
 

mercurial