mod_bosh: Don't log response XML
authorMatthew Wild <mwild1@gmail.com>
Sat, 21 Nov 2009 13:15:46 +0000
changeset 2814 752182f12c35
parent 2713 1fc95582d74b
child 2815 84123bcfa0ba
mod_bosh: Don't log response XML
plugins/mod_bosh.lua
--- a/plugins/mod_bosh.lua	Thu Feb 25 17:54:23 2010 +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");