From 598b3b441e7f40612f96fcf59e17de2b594d6f3b Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Fri, 2 Sep 2016 16:02:17 -0500 Subject: Logging error if MUC room cache is full --- plugins/muc/mod_muc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 41b84a86..d8553d5e 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -114,8 +114,8 @@ local function room_save(room, forced, savestate) end end -local rooms = cache.new(module:get_option_number("muc_room_cache_size", 100), function (_, room) - module:log("debug", "%s evicted", room); +local rooms = cache.new(module:get_option_number("muc_room_cache_size", 100), function (jid, room) + module:log("debug", "%s evicted", jid); room_save(room, nil, true); -- Force to disk end); @@ -151,7 +151,7 @@ function forget_room(room) end function delete_room(room) - module:log("debug", "Deleting %s", room); + module:log("debug", "Deleting %s", room.jid); room_configs:set(jid_split(room.jid), nil); persistent_rooms:set(nil, room.jid, nil); room_items_cache[room.jid] = nil; -- cgit v1.2.3