Changeset

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
parents 10522:b1ca849b8e3a
children 10524:7c29a6e652d2
files plugins/mod_mam/mod_mam.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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());