diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-24 00:27:41 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-24 00:27:41 +0100 |
commit | fa9d8957e3d4568f23616fd7dc8222bd51340081 (patch) | |
tree | 05ce1faa572ebfd16bccdc38178eea707cfc4ae0 /plugins/mod_mam/mod_mam.lua | |
parent | 7928145f7d1462d9d9241482fb220e4667a26bc5 (diff) | |
download | prosody-fa9d8957e3d4568f23616fd7dc8222bd51340081.tar.gz prosody-fa9d8957e3d4568f23616fd7dc8222bd51340081.zip |
mod_mam: Log error when unable to delete old messages (fix #1479) [luacheck]
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 2443270f..df5d925a 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -387,6 +387,8 @@ if cleanup_after ~= "never" then if ok then num_users = num_users + 1; sum = sum + (tonumber(ok) or 0); + else + module:log("error", "Could not delete messages for user '%s': %s", user, err); end end module:log("info", "Deleted %d expired messages for %d users", sum, num_users); |