# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1562880362 -7200
# Node ID 9137c9ce8b52e82fa3336c9383d6649e0b977778
# Parent  128142990b2bc14e60136e329267056183906b64
mod_mam: Use stanza id in log message as fallback if no query id

diff -r 128142990b2b -r 9137c9ce8b52 plugins/mod_mam/mod_mam.lua
--- a/plugins/mod_mam/mod_mam.lua	Thu Jul 11 23:30:58 2019 +0200
+++ b/plugins/mod_mam/mod_mam.lua	Thu Jul 11 23:26:02 2019 +0200
@@ -120,7 +120,7 @@
 
 	module:log("debug", "Archive query by %s id=%s with=%s when=%s...%s",
 		origin.username,
-		qid or "-",
+		qid or stanza.attr.id,
 		qwith or "*",
 		qstart and timestamp(qstart) or "",
 		qend and timestamp(qend) or "");