Changeset

10074:a1081443666c

mod_mam: Include query id in final log message Should make it easier to find related log messages
author Kim Alvefur <zash@zash.se>
date Thu, 11 Jul 2019 23:31:13 +0200
parents 10073:9137c9ce8b52
children 10075:5f58a81c7dcc
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	Thu Jul 11 23:26:02 2019 +0200
+++ b/plugins/mod_mam/mod_mam.lua	Thu Jul 11 23:31:13 2019 +0200
@@ -197,7 +197,7 @@
 	end
 
 	-- That's all folks!
-	module:log("debug", "Archive query %s completed", tostring(qid));
+	module:log("debug", "Archive query id=%s completed", qid or stanza.attr.id);
 
 	origin.send(st.reply(stanza)
 		:tag("fin", { xmlns = xmlns_mam, queryid = qid, complete = complete })