# HG changeset patch # User Kim Alvefur # Date 1577143661 -3600 # Node ID 7c29a6e652d2d7f31f711ba4a36555a8bf2e9939 # Parent 86422db90e02dfb7f2d63824499c8b0a23d7f62d mod_mam: Log error when unable to delete old messages (fix #1479) [luacheck] diff -r 86422db90e02 -r 7c29a6e652d2 plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Mon Dec 23 23:18:39 2019 +0100 +++ b/plugins/mod_mam/mod_mam.lua Tue Dec 24 00:27:41 2019 +0100 @@ -387,6 +387,8 @@ 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);