# HG changeset patch # User Kim Alvefur # Date 1540749672 -3600 # Node ID 264eab9d501c11ed3a882c50f21c5694e5da92fc # Parent 2681f74750b27697eda8a96a83e45a2ced8a8a28 mod_mam_muc: Log to debug log whether a message is archived or not diff -r 2681f74750b2 -r 264eab9d501c mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Fri Oct 26 20:07:16 2018 +0200 +++ b/mod_mam_muc/mod_mam_muc.lua Sun Oct 28 19:01:12 2018 +0100 @@ -407,7 +407,11 @@ end -- Policy check - if not archiving_enabled(self) then return end -- Don't log + if not archiving_enabled(self) then -- Don't log + module:log("debug", "Not archiving %s", stanza:top_tag()); + return; + end + module:log("debug", "Archiving %s", stanza:top_tag()); -- And stash it local with = stanza.name