diff options
author | Sam Whited <sam@samwhited.com> | 2016-09-02 16:02:17 -0500 |
---|---|---|
committer | Sam Whited <sam@samwhited.com> | 2016-09-02 16:02:17 -0500 |
commit | 2ce4ed5754e376889fff321e48a5296d6e08e563 (patch) | |
tree | d86563a5aa6bcb91edab1a6b07021083d336cb17 | |
parent | 0bad074e8621bf2537f597c0ea45718dbddd8f12 (diff) | |
download | prosody-2ce4ed5754e376889fff321e48a5296d6e08e563.tar.gz prosody-2ce4ed5754e376889fff321e48a5296d6e08e563.zip |
Logging error if MUC room cache is full
-rw-r--r-- | plugins/muc/mod_muc.lua | 6 |
1 files 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; |