aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_muc_mam.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-23 23:32:49 +0100
committerKim Alvefur <zash@zash.se>2019-12-23 23:32:49 +0100
commit791fa6db10bfed7fb1c3aa5cf0cafa8298ea2e3c (patch)
treee6402eaa85a79cbb646d0ec5f4b5b1171e60e515 /plugins/mod_muc_mam.lua
parent9401b471251fa39b1f127a9a25881a86e9fad776 (diff)
downloadprosody-791fa6db10bfed7fb1c3aa5cf0cafa8298ea2e3c.tar.gz
prosody-791fa6db10bfed7fb1c3aa5cf0cafa8298ea2e3c.zip
mod_muc_mam: Log error when unable to store stanza (fix #1480) [luacheck]
Diffstat (limited to 'plugins/mod_muc_mam.lua')
-rw-r--r--plugins/mod_muc_mam.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_muc_mam.lua b/plugins/mod_muc_mam.lua
index a2e3f81b..37e41157 100644
--- a/plugins/mod_muc_mam.lua
+++ b/plugins/mod_muc_mam.lua
@@ -357,6 +357,8 @@ local function save_to_history(self, stanza)
if id then
schedule_cleanup(room_node);
stanza:add_direct_child(st.stanza("stanza-id", { xmlns = xmlns_st_id, by = self.jid, id = id }));
+ else
+ module:log("error", "Could not archive stanza: %s", err);
end
end