Software /
code /
prosody
Changeset
10735:f2838ffcc499
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 21 Apr 2020 00:53:23 +0200 |
parents | 10734:136c41a3d03c |
children | 10736:c5a3576a5335 |
files | plugins/mod_mam/mod_mam.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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();