Changeset

10561:29b3eb95c268 0.11

mod_muc_mam: Log error when unable to delete old messages (fix #1481) [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 24 Dec 2019 00:26:37 +0100
parents 10526:28c8e09fb3cd
children 10562:670afc079f68
files plugins/mod_muc_mam.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_muc_mam.lua	Mon Dec 23 23:32:49 2019 +0100
+++ b/plugins/mod_muc_mam.lua	Tue Dec 24 00:26:37 2019 +0100
@@ -459,6 +459,8 @@
 			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);