mod_muc_mam: Log error when unable to delete old messages (fix #1481) [luacheck]

This commit is contained in:
Kim Alvefur 2019-12-24 00:26:37 +01:00
parent b10527f724
commit 9482392517

View file

@ -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);