# HG changeset patch # User Sam Whited # Date 1472850137 18000 # Node ID 4c2407422f71afbb08ba6ff319b9d633fe8ce7b0 # Parent c07f0186979594a6715575fed65b581e3298b907 Logging error if MUC room cache is full diff -r c07f01869795 -r 4c2407422f71 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Wed Aug 31 16:40:39 2016 +0100 +++ b/plugins/muc/mod_muc.lua Fri Sep 02 16:02:17 2016 -0500 @@ -114,8 +114,8 @@ 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 @@ 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;