From 669ca29966bf80b02237ff9581ff264377f67707 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 24 Dec 2019 00:27:41 +0100 Subject: mod_mam: Log error when unable to delete old messages (fix #1479) [luacheck] --- plugins/mod_mam/mod_mam.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/mod_mam') 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); -- cgit v1.2.3