diff mod_cloud_notify/mod_cloud_notify.lua @ 2257:f84b51f9aa82

mod_cloud_notify: Log message when 'jid' is missing from enable request
author Kim Alvefur <zash@zash.se>
date Thu, 28 Jul 2016 12:34:15 +0200
parents cdfc917a8cc7
children 3abc51faf945
line wrap: on
line diff
--- 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