Changeset

5852:1e28f32257d6

mod_poke_strangers: Fix incorrect log method calls
author Matthew Wild <mwild1@gmail.com>
date Wed, 24 Jan 2024 13:14:36 +0000
parents 5851:0ee77be396b9
children 5853:b109773ce6fe
files mod_poke_strangers/mod_poke_strangers.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_poke_strangers/mod_poke_strangers.lua	Tue Jan 16 11:47:22 2024 +0100
+++ b/mod_poke_strangers/mod_poke_strangers.lua	Wed Jan 24 13:14:36 2024 +0000
@@ -11,12 +11,12 @@
 local disco_id = uuid_generate();
 
 module:hook("iq-result/host/" .. version_id, function (event)
-	module:log("info", "Stranger " .. event.stanza.attr.from .. " version: " .. tostring(event.stanza));
+	module:log("info", "Stranger <%s> version: %s", event.stanza.attr.from, event.stanza);
 	return true;
 end);
 
 module:hook("iq-result/host/" .. disco_id, function (event)
-	module:log("info", "Stranger " .. event.stanza.attr.from .. " disco: " .. tostring(event.stanza));
+	module:log("info", "Stranger <%s> disco: %s", event.stanza.attr.from, event.stanza);
 	return true;
 end);
 
@@ -27,7 +27,7 @@
 	local stranger_jid = stanza.attr.from;
 
 	if recently_queried:contains(stranger_jid) then
-		module:log("debug", "Not re-poking " .. stranger_jid);
+		module:log("debug", "Not re-poking <%s>", stranger_jid);
 		return nil;
 	end