diff options
author | Kim Alvefur <zash@zash.se> | 2020-04-21 00:53:23 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-04-21 00:53:23 +0200 |
commit | 962d36d401a1a55346a92fe3b30c6b215583fada (patch) | |
tree | 7cce7988928c4972725de8d5f6ee81ba24e653e2 /plugins/mod_mam | |
parent | 5817e5f02d048aa6c17d5430d55f11c4a7a40a96 (diff) | |
download | prosody-962d36d401a1a55346a92fe3b30c6b215583fada.tar.gz prosody-962d36d401a1a55346a92fe3b30c6b215583fada.zip |
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.
Diffstat (limited to 'plugins/mod_mam')
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 27b4796d..9c00cc99 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -323,7 +323,7 @@ local function message_handler(event, c2s) -- 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(); |