mod_bosh: Add extra debug logging to help with #1134
authorKim Alvefur <zash@zash.se>
Tue, 15 May 2018 01:22:35 +0200
changeset 8921 f69b3e39e0c1
parent 8920 d4c98115e00c
child 8923 2eaa442d81a6
mod_bosh: Add extra debug logging to help with #1134
plugins/mod_bosh.lua
--- a/plugins/mod_bosh.lua	Wed Jun 20 10:42:57 2018 +0100
+++ b/plugins/mod_bosh.lua	Tue May 15 01:22:35 2018 +0200
@@ -192,6 +192,12 @@
 			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;