mod_cloud_notify_encrypted: Add debug logging when successfully encrypted
authorMatthew Wild <mwild1@gmail.com>
Sat, 24 Sep 2022 08:00:55 +0100
changeset 5059 3b609eaf0db5
parent 5058 62480053c87b
child 5060 2583bd7eb5d1
mod_cloud_notify_encrypted: Add debug logging when successfully encrypted
mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua
--- 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);