Changeset

179:774a172b03c8

Better logging of s2s connections
author Matthew Wild <mwild1@gmail.com>
date Sun, 26 Oct 2008 14:03:40 +0000
parents 178:8315cf03f304
children 180:d8b9a19d70eb
files core/s2smanager.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;