aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-05-15 01:22:35 +0200
committerKim Alvefur <zash@zash.se>2018-05-15 01:22:35 +0200
commita346709487fd665dbcca39a92f7d0bd3b519a9bc (patch)
treecf1b3d6eb82eaee0f3dcaf2aa8b381788f1b7e30 /plugins
parentc5bd62df9883ccb38e204d2f62531db958d1a9a6 (diff)
downloadprosody-a346709487fd665dbcca39a92f7d0bd3b519a9bc.tar.gz
prosody-a346709487fd665dbcca39a92f7d0bd3b519a9bc.zip
mod_bosh: Add extra debug logging to help with #1134
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 60d3e4b4..1908e5ed 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -192,6 +192,12 @@ function handle_POST(event)
return true; -- Inform http server we shall reply later
end
elseif response.finished or context.ignore_request then
+ if response.finished then
+ module:log("debug", "Response finished");
+ end
+ if context.ignore_request then
+ module:log("debug", "Ignoring this request");
+ end
-- A response has been sent already, or we're ignoring this request
-- (e.g. so a different instance of the module can handle it)
return;