mod_cloud_notify: Log message when 'jid' is missing from enable request
authorKim Alvefur <zash@zash.se>
Thu, 28 Jul 2016 12:34:15 +0200
changeset 2261 f84b51f9aa82
parent 2260 c5c583fae25d
child 2262 3abc51faf945
mod_cloud_notify: Log message when 'jid' is missing from enable request
mod_cloud_notify/mod_cloud_notify.lua
--- a/mod_cloud_notify/mod_cloud_notify.lua	Thu Jul 28 12:14:33 2016 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Thu Jul 28 12:34:15 2016 +0200
@@ -33,6 +33,7 @@
 	-- SHOULD contain a 'node' attribute
 	local push_node = enable.attr.node;
 	if not push_jid then
+		origin.log("debug", "Push notification enable request missing the 'jid' field");
 		origin.send(st.error_reply(stanza, "modify", "bad-request", "Missing jid"));
 		return true;
 	end