# HG changeset patch # User Kim Alvefur # Date 1469704726 -7200 # Node ID 19fbf190b5a7f666832cad77e1355b7bce532960 # Parent a276fdabf7687b958dc4822eb9914e247275dc45 mod_cloud_notify: Log when sending notifications diff -r a276fdabf768 -r 19fbf190b5a7 mod_cloud_notify/mod_cloud_notify.lua --- a/mod_cloud_notify/mod_cloud_notify.lua Thu Jul 28 13:13:08 2016 +0200 +++ b/mod_cloud_notify/mod_cloud_notify.lua Thu Jul 28 13:18:46 2016 +0200 @@ -101,6 +101,7 @@ 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; @@ -125,6 +126,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:send(push_publish); end push_enabled:set(node, user_push_services);