Software /
code /
prosody-modules
Changeset
2262:19fbf190b5a7
mod_cloud_notify: Log when sending notifications
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 28 Jul 2016 13:18:46 +0200 |
parents | 2261:a276fdabf768 |
children | 2263:92af641fcf48 |
files | mod_cloud_notify/mod_cloud_notify.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);