# HG changeset patch # User Kim Alvefur # Date 1587423203 -7200 # Node ID f2838ffcc49953849d6d313eb675833893bb91bb # Parent 136c41a3d03cf4709814b37cb62f468aadd18689 mod_mam: Log 'why' a stanza is archived Logging of 'why not' is already done. Why not both? Will make more sense when the rules evolve a bit. diff -r 136c41a3d03c -r f2838ffcc499 plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Tue Apr 21 00:53:21 2020 +0200 +++ b/plugins/mod_mam/mod_mam.lua Tue Apr 21 00:53:23 2020 +0200 @@ -323,7 +323,7 @@ -- Check with the users preferences if shall_store(store_user, with) then - log("debug", "Archiving stanza: %s", stanza:top_tag()); + log("debug", "Archiving stanza: %s (%s)", stanza:top_tag(), why); -- And stash it local time = time_now();