Changeset

7650:4c2407422f71

Logging error if MUC room cache is full
author Sam Whited <sam@samwhited.com>
date Fri, 02 Sep 2016 16:02:17 -0500
parents 7649:c07f01869795
children 7654:b40776ee2aef
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;