Diff

plugins/mod_bosh.lua @ 8918:f69b3e39e0c1

mod_bosh: Add extra debug logging to help with #1134
author Kim Alvefur <zash@zash.se>
date Tue, 15 May 2018 01:22:35 +0200
parent 8843:041ddc670934
child 9377:f2013233e20d
line wrap: on
line diff
--- 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;