changeset 2258:3abc51faf945

mod_cloud_notify: Log message if no dataform is found
author Kim Alvefur <zash@zash.se>
date Thu, 28 Jul 2016 12:35:57 +0200
parents f84b51f9aa82
children e0808be13d77
files mod_cloud_notify/mod_cloud_notify.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua	Thu Jul 28 12:34:15 2016 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Thu Jul 28 12:35:57 2016 +0200
@@ -38,6 +38,10 @@
 		return true;
 	end
 	local publish_options = enable:get_child("x", "jabber:x:data");
+	if not publish_options then
+		-- Could be intentional
+		origin.log("debug", "No publish options in request");
+	end
 	local user_push_services = push_enabled:get(origin.username);
 	if not user_push_services then
 		user_push_services = {};