# HG changeset patch # User Matthew Wild # Date 1234186270 0 # Node ID ecdf72f9b085867dae43900acc3a2bf9b69194c7 # Parent bddf521219084e5656946227ffebb2937ccedad6 Remove redundant logging and debug printing from mod_bosh diff -r bddf52121908 -r ecdf72f9b085 plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Wed Feb 04 18:53:56 2009 +0000 +++ b/plugins/mod_bosh.lua Mon Feb 09 13:31:10 2009 +0000 @@ -42,7 +42,7 @@ log("debug", "Request %s suffered error %s", tostring(request.id), body); return; end - log("debug", "Handling new request %s: %s\n----------", request.id, tostring(body)); + --log("debug", "Handling new request %s: %s\n----------", request.id, tostring(body)); request.notopen = true; request.log = log; local parser = lxp.new(init_xmlhandlers(request, stream_callbacks), "|"); @@ -79,7 +79,7 @@ waiting_requests[request] = true; end - log("debug", "Had nothing to say, so leaving request unanswered for now"); + log("debug", "Have nothing to say, so leaving request unanswered for now"); return true; end end @@ -101,8 +101,6 @@ end function stream_callbacks.streamopened(request, attr) - print("Attr:") - for k,v in pairs(attr) do print("", k, v); end log("debug", "BOSH body open (sid: %s)", attr.sid); local sid = attr.sid if not sid then @@ -139,7 +137,7 @@ log("debug", "We have an open request, so using that to send with"); response.body = t_concat{"", tostring(s), "" }; oldest_request:send(response); - log("debug", "Sent"); + --log("debug", "Sent"); if oldest_request.stayopen then if #r>1 then -- Move front request to back