mod_bosh: Don't log response XML
authorMatthew Wild <mwild1@gmail.com>
Sat, 21 Nov 2009 13:15:46 +0000
changeset 2099 73e083d01449
parent 2098 a1ad06f1c090
child 2100 c8005be640b1
child 2103 0e0bc74c64a0
mod_bosh: Don't log response XML
plugins/mod_bosh.lua
--- a/plugins/mod_bosh.lua	Sat Nov 21 03:16:14 2009 +0000
+++ b/plugins/mod_bosh.lua	Sat Nov 21 13:15:46 2009 +0000
@@ -152,7 +152,7 @@
 		local r, send_buffer = session.requests, session.send_buffer;
 		local response = { headers = default_headers }
 		function session.send(s)
-			log("debug", "Sending BOSH data: %s", tostring(s));
+			--log("debug", "Sending BOSH data: %s", tostring(s));
 			local oldest_request = r[1];
 			while oldest_request and oldest_request.destroyed do
 				t_remove(r, 1);
@@ -160,7 +160,7 @@
 				oldest_request = r[1];
 			end
 			if oldest_request then
-				log("debug", "We have an open request, so using that to send with");
+				log("debug", "We have an open request, so sending on that");
 				response.body = t_concat{"<body xmlns='http://jabber.org/protocol/httpbind' sid='", sid, "' xmlns:stream = 'http://etherx.jabber.org/streams'>", tostring(s), "</body>" };
 				oldest_request:send(response);
 				--log("debug", "Sent");