# HG changeset patch # User Emmanuel Gil Peyrot # Date 1527871230 -7200 # Node ID e0ef90e9693149cc56ecaaaff5136c891623ba89 # Parent b003d72d9ce61fe82d5fb9b44dd4c1df761508e4 mod_auto_answer_disco_info: Switch to origin.log to provide better debug to admins. diff -r b003d72d9ce6 -r e0ef90e96931 mod_auto_answer_disco_info/mod_auto_answer_disco_info.lua --- a/mod_auto_answer_disco_info/mod_auto_answer_disco_info.lua Fri Jun 01 18:33:53 2018 +0200 +++ b/mod_auto_answer_disco_info/mod_auto_answer_disco_info.lua Fri Jun 01 18:40:30 2018 +0200 @@ -3,7 +3,7 @@ local st = require "util.stanza"; local function iq_stanza_handler(event) - local stanza = event.stanza; + local stanza, origin = event.stanza, event.origin; local type = stanza.attr.type; local query = stanza:get_child("query", "http://jabber.org/protocol/disco#info"); @@ -23,7 +23,7 @@ if disco_info ~= nil and (node == nil or node == disco_info.attr.node) then local iq = st.reply(stanza); iq:add_child(st.clone(disco_info)); - module:log("debug", "Answering disco#info on the behalf of %s", to); + origin.log("debug", "Answering disco#info on the behalf of %s", to); module:send(iq); return true; end