Software /
code /
prosody-modules
Diff
mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua @ 5055:3b609eaf0db5
mod_cloud_notify_encrypted: Add debug logging when successfully encrypted
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 24 Sep 2022 08:00:55 +0100 |
parent | 5054:62480053c87b |
line wrap: on
line diff
--- a/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua Fri Sep 23 22:41:15 2022 +0100 +++ b/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua Sat Sep 24 08:00:55 2022 +0100 @@ -140,6 +140,8 @@ event.notification_payload :remove_children("x", "jabber:x:data") :add_child(encrypted_element); + + module:log("debug", "Encrypted '%s' push notification using %s", push_payload.type, encryption.algorithm); end module:hook("cloud_notify/registration", handle_register);