Software /
code /
prosody
Diff
plugins/mod_bosh.lua @ 2099:73e083d01449
mod_bosh: Don't log response XML
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 21 Nov 2009 13:15:46 +0000 |
parent | 2084:ded03b7b040e |
child | 2354:5a00668ba0ab |
child | 2923:b7049746bd29 |
line wrap: on
line diff
--- 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");