# HG changeset patch # User Matthew Wild # Date 1706102076 0 # Node ID 1e28f32257d696e1d12482c387db9a5718aa3456 # Parent 0ee77be396b927bebf332adff890535da6af1364 mod_poke_strangers: Fix incorrect log method calls diff -r 0ee77be396b9 -r 1e28f32257d6 mod_poke_strangers/mod_poke_strangers.lua --- 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