aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mod_mam.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-23 23:18:39 +0100
committerKim Alvefur <zash@zash.se>2019-12-23 23:18:39 +0100
commit7928145f7d1462d9d9241482fb220e4667a26bc5 (patch)
tree23473801b89590d4275cdfcbc6e316c06604ee03 /plugins/mod_mam/mod_mam.lua
parent32bb14048a8297a341dd07090d030e088657f9ad (diff)
downloadprosody-7928145f7d1462d9d9241482fb220e4667a26bc5.tar.gz
prosody-7928145f7d1462d9d9241482fb220e4667a26bc5.zip
mod_mam: Log error when unable to store stanza (fix #1478)
Unclear what else to do here. Caught by luacheck
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r--plugins/mod_mam/mod_mam.lua2
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());