Mercurial > prosody-hg
comparison plugins/mod_bosh.lua @ 5646:c4b6ebea7185
mod_bosh: Remove some very verbose logging
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 05 Jun 2013 21:37:33 +0100 |
| parents | ae079d57af2e |
| children | 8767b47524c9 |
comparison
equal
deleted
inserted
replaced
| 5645:ae079d57af2e | 5646:c4b6ebea7185 |
|---|---|
| 137 end | 137 end |
| 138 | 138 |
| 139 local r = session.requests; | 139 local r = session.requests; |
| 140 log("debug", "Session %s has %d out of %d requests open", context.sid, #r, session.bosh_hold); | 140 log("debug", "Session %s has %d out of %d requests open", context.sid, #r, session.bosh_hold); |
| 141 log("debug", "and there are %d things in the send_buffer:", #session.send_buffer); | 141 log("debug", "and there are %d things in the send_buffer:", #session.send_buffer); |
| 142 for i, thing in ipairs(session.send_buffer) do | |
| 143 log("debug", " %s", tostring(thing)); | |
| 144 end | |
| 145 if #r > session.bosh_hold then | 142 if #r > session.bosh_hold then |
| 146 -- We are holding too many requests, send what's in the buffer, | 143 -- We are holding too many requests, send what's in the buffer, |
| 147 log("debug", "We are holding too many requests, so..."); | 144 log("debug", "We are holding too many requests, so..."); |
| 148 if #session.send_buffer > 0 then | 145 if #session.send_buffer > 0 then |
| 149 log("debug", "...sending what is in the buffer") | 146 log("debug", "...sending what is in the buffer") |
