diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-16 21:59:41 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-16 21:59:41 +0100 |
commit | 907b1523fdd2289c409f30df768198ecd97cab1a (patch) | |
tree | 4d145c623b794811f1e84a9145d59ca7e33120de /plugins/muc/mod_muc.lua | |
parent | 3546afb5589d36fbf4401b695f2571ed2c552347 (diff) | |
download | prosody-907b1523fdd2289c409f30df768198ecd97cab1a.tar.gz prosody-907b1523fdd2289c409f30df768198ecd97cab1a.zip |
MUC: Log failure to load room state
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r-- | plugins/muc/mod_muc.lua | 5 |
1 files changed, 4 insertions, 1 deletions
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 |