Diff

mod_cloud_notify/mod_cloud_notify.lua @ 2263:92af641fcf48

mod_cloud_notify: One log message per push sent (happy now Ge0rg?)
author Kim Alvefur <zash@zash.se>
date Thu, 28 Jul 2016 14:47:28 +0200
parent 2262:19fbf190b5a7
child 2395:2e641ab995b3
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua	Thu Jul 28 13:18:46 2016 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Thu Jul 28 14:47:28 2016 +0200
@@ -101,7 +101,6 @@
 	local user_push_services = push_enabled:get(node);
 	if not user_push_services then return end
 
-	module:log("debug", "New message to %s@%s, sending push notifications", node, module.host);
 	for _, push_info in pairs(user_push_services) do
 		push_info.count = push_info.count + 1;
 		local push_jid, push_node = push_info.jid, push_info.node;
@@ -126,7 +125,7 @@
 		if push_info.options then
 			push_publish:tag("publish-options"):add_child(st.deserialize(push_info.options));
 		end
-		module:log("debug", "Sending notification to %s", push_jid);
+		module:log("debug", "Sending push notification for %s@%s to %s", node, module.host, push_jid);
 		module:send(push_publish);
 	end
 	push_enabled:set(node, user_push_services);