mod_bosh: Log when a stanza isn't handled because we can't find a session for it
authorMatthew Wild <mwild1@gmail.com>
Fri, 02 Sep 2016 21:57:40 +0100
changeset 7655 7cc3d6c764ce
parent 7654 55f11a6806bc
child 7656 17e42f793341
mod_bosh: Log when a stanza isn't handled because we can't find a session for it
plugins/mod_bosh.lua
--- a/plugins/mod_bosh.lua	Fri Sep 02 21:57:22 2016 +0100
+++ b/plugins/mod_bosh.lua	Fri Sep 02 21:57:40 2016 +0100
@@ -412,6 +412,8 @@
 				return xpcall(function () return core_process_stanza(session, stanza) end, handleerr);
 			end
 		end
+	else
+		log("debug", "No session for this stanza! (sid: %s)", context.sid or "none!");
 	end
 end