# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1469702157 -7200
# Node ID 3abc51faf9459a0d7ac40326cf6e39e7db1df04d
# Parent  f84b51f9aa82c4dde3f2867d36146888d8f39d39
mod_cloud_notify: Log message if no dataform is found

diff -r f84b51f9aa82 -r 3abc51faf945 mod_cloud_notify/mod_cloud_notify.lua
--- 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 = {};