From 3ccd3d28f7c44b957dbaca575759452f014720ba Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 16 Mar 2018 21:59:41 +0100 Subject: MUC: Log failure to load room state --- plugins/muc/mod_muc.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/muc') diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 242178ae..a3c6cb81 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -158,7 +158,10 @@ local function restore_room(jid) local data, err = room_configs:get(node); if data then module:log("debug", "Restoring room %s from storage", jid); - local state = room_state:get(node); + local state, s_err = room_state:get(node); + if not state and s_err then + module:log("debug", "Could not restore state of room %s: %s", jid, s_err); + end local room = muclib.restore_room(data, state); return track_room(room); elseif err then -- cgit v1.2.3