Changeset

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
parents 8917:d4c98115e00c
children 8920:2eaa442d81a6
files plugins/mod_bosh.lua
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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;