Changeset

269:3cfac0e5e6ca

Log how many queued stanzas we send
author Waqas Hussain <waqas20@gmail.com>
date Sat, 15 Nov 2008 08:38:25 +0500
parents 268:fd0607c8f179
children 270:837c7f701a56
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Sat Nov 15 00:35:09 2008 +0000
+++ b/core/s2smanager.lua	Sat Nov 15 08:38:25 2008 +0500
@@ -205,7 +205,7 @@
 	
 	if session.direction == "outgoing" then
 		if sendq then
-			session.log("debug", "sending queued stanzas across new outgoing connection to "..session.to_host);
+			session.log("debug", "sending "..#sendq.." queued stanzas across new outgoing connection to "..session.to_host);
 			for i, data in ipairs(sendq) do
 				send(data);
 				sendq[i] = nil;