Changeset

1434:b5d4db71ef1a

Log stanza if stanza.to isn't set for some component errors.
author nolan@nolan-eee
date Sun, 28 Jun 2009 08:09:57 -0500
parents 1423:5e72c3e1743a
children 1436:064cb5328ac5 1442:df9d78544f34
files core/componentmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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