# HG changeset patch # User Kim Alvefur # Date 1469710048 -7200 # Node ID 92af641fcf48762fb3d785a364c2fcc9e6332b78 # Parent 19fbf190b5a7f666832cad77e1355b7bce532960 mod_cloud_notify: One log message per push sent (happy now Ge0rg?) diff -r 19fbf190b5a7 -r 92af641fcf48 mod_cloud_notify/mod_cloud_notify.lua --- 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);