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 | fa6f88cf3e2a5dc5ce939fdff4e7d1b1d74cf763 (patch) | |
tree | 23473801b89590d4275cdfcbc6e316c06604ee03 | |
parent | 097d7ca6638721a97bae4a92d1cdb3a41a05acdd (diff) | |
download | prosody-fa6f88cf3e2a5dc5ce939fdff4e7d1b1d74cf763.tar.gz prosody-fa6f88cf3e2a5dc5ce939fdff4e7d1b1d74cf763.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()); |