diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-24 00:26:37 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-24 00:26:37 +0100 |
commit | 20d4a9b614d36aa41a446784cf40d08e965498b2 (patch) | |
tree | d3ae0be88ab1e314ead5a147b0e4c72d75969e5a /plugins/mod_muc_mam.lua | |
parent | 4e230b95efa6414813830e1371da5bff3de5c169 (diff) | |
download | prosody-20d4a9b614d36aa41a446784cf40d08e965498b2.tar.gz prosody-20d4a9b614d36aa41a446784cf40d08e965498b2.zip |
mod_muc_mam: Log error when unable to delete old messages (fix #1481) [luacheck]
Diffstat (limited to 'plugins/mod_muc_mam.lua')
-rw-r--r-- | plugins/mod_muc_mam.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_muc_mam.lua b/plugins/mod_muc_mam.lua index 37e41157..c6104757 100644 --- a/plugins/mod_muc_mam.lua +++ b/plugins/mod_muc_mam.lua @@ -459,6 +459,8 @@ if cleanup_after ~= "never" then if ok then num_rooms = num_rooms + 1; sum = sum + (tonumber(ok) or 0); + else + module:log("error", "Could not delete messages for room '%s': %s", room, err); end end module:log("info", "Deleted %d expired messages for %d rooms", sum, num_rooms); |