diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-23 23:18:39 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-23 23:18:39 +0100 |
commit | a74a87fb30912dfe366ded43e478755c7a1da642 (patch) | |
tree | 23473801b89590d4275cdfcbc6e316c06604ee03 | |
parent | d464d7edb10eec5690d92689a4accca831724344 (diff) | |
download | prosody-a74a87fb30912dfe366ded43e478755c7a1da642.tar.gz prosody-a74a87fb30912dfe366ded43e478755c7a1da642.zip |
mod_mam: Log error when unable to store stanza (fix #1478)
Unclear what else to do here.
Caught by luacheck
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index b500770f..2443270f 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -305,6 +305,8 @@ local function message_handler(event, c2s) event.stanza = clone_for_other_handlers; schedule_cleanup(store_user); module:fire_event("archive-message-added", { origin = origin, stanza = clone_for_storage, for_user = store_user, id = id }); + else + log("error", "Could not archive stanza: %s", err); end else log("debug", "Not archiving stanza: %s (prefs)", stanza:top_tag()); |