# HG changeset patch # User Kim Alvefur # Date 1670015200 -3600 # Node ID 4fb922aa0ace3fbee59dd8ffbd10e0363941d522 # Parent 9eed88ac8ee8e4096e3d9389f8460c273b3b2c5f mod_s2soutinjection: Use session logger where it makes sense It makes sense here. diff -r 9eed88ac8ee8 -r 4fb922aa0ace mod_s2soutinjection/mod_s2soutinjection.lua --- a/mod_s2soutinjection/mod_s2soutinjection.lua Fri Dec 02 22:05:13 2022 +0100 +++ b/mod_s2soutinjection/mod_s2soutinjection.lua Fri Dec 02 22:06:40 2022 +0100 @@ -75,7 +75,7 @@ -- Store in buffer host_session.bounce_sendq = bounce_sendq; host_session.sendq = { {tostring(stanza), stanza.attr.type ~= "error" and stanza.attr.type ~= "result" and st.reply(stanza)} }; - module:log("debug", "stanza [%s] queued until connection complete", tostring(stanza.name)); + host_session.log("debug", "stanza [%s] queued until connection complete", tostring(stanza.name)); local host, port = inject[1] or inject, tonumber(inject[2]) or 5269;