Software /
code /
prosody
Diff
plugins/mod_mam/mod_mam.lua @ 10523:86422db90e02 0.11
mod_mam: Log error when unable to store stanza (fix #1478)
Unclear what else to do here.
Caught by luacheck
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 23 Dec 2019 23:18:39 +0100 |
parent | 10298:906ea5e1ec75 |
child | 10524:7c29a6e652d2 |
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua Mon Dec 23 22:42:39 2019 +0100 +++ b/plugins/mod_mam/mod_mam.lua Mon Dec 23 23:18:39 2019 +0100 @@ -305,6 +305,8 @@ 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());