Diff

core/s2smanager.lua @ 179:774a172b03c8

Better logging of s2s connections
author Matthew Wild <mwild1@gmail.com>
date Sun, 26 Oct 2008 14:03:40 +0000
parent 169:92768120b717
child 186:bfa8a30ea488
line wrap: on
line diff
--- a/core/s2smanager.lua	Sun Oct 26 13:19:09 2008 +0000
+++ b/core/s2smanager.lua	Sun Oct 26 14:03:40 2008 +0000
@@ -164,8 +164,9 @@
 
 function mark_connected(session)
 	local sendq, send = session.sendq, session.send;
+	session.log("debug", session.direction.." s2s connection "..session.from_host.."->"..session.to_host.." is now complete");
 	if sendq then
-		session.log("debug", "sending queued stanzas across new connection");
+		session.log("debug", "sending queued stanzas across new outgoing connection");
 		for i, data in ipairs(sendq) do
 			send(data);
 			sendq[i] = nil;