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 | 9549657e06f1d565bdc11808eb10da8707b91c40 (patch) | |
tree | 7cce7988928c4972725de8d5f6ee81ba24e653e2 | |
parent | 378bb147c81634128bf0918f4ede3aa48cac8b45 (diff) | |
download | prosody-9549657e06f1d565bdc11808eb10da8707b91c40.tar.gz prosody-9549657e06f1d565bdc11808eb10da8707b91c40.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.
-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(); |