Changeset

8659:4006755c1097

MUC: Log failure to load room state
author Kim Alvefur <zash@zash.se>
date Fri, 16 Mar 2018 21:59:41 +0100
parents 8658:75c7e887c4b9
children 8660:3b54f8472b51
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Fri Mar 16 21:59:34 2018 +0100
+++ b/plugins/muc/mod_muc.lua	Fri Mar 16 21:59:41 2018 +0100
@@ -158,7 +158,10 @@
 	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