comparison mod_s2soutinjection/mod_s2soutinjection.lua @ 5103:4fb922aa0ace

mod_s2soutinjection: Use session logger where it makes sense It makes sense here.
author Kim Alvefur <zash@zash.se>
date Fri, 02 Dec 2022 22:06:40 +0100
parents 9eed88ac8ee8
children
comparison
equal deleted inserted replaced
5102:9eed88ac8ee8 5103:4fb922aa0ace
73 local host_session = new_outgoing(from_host, to_host); 73 local host_session = new_outgoing(from_host, to_host);
74 74
75 -- Store in buffer 75 -- Store in buffer
76 host_session.bounce_sendq = bounce_sendq; 76 host_session.bounce_sendq = bounce_sendq;
77 host_session.sendq = { {tostring(stanza), stanza.attr.type ~= "error" and stanza.attr.type ~= "result" and st.reply(stanza)} }; 77 host_session.sendq = { {tostring(stanza), stanza.attr.type ~= "error" and stanza.attr.type ~= "result" and st.reply(stanza)} };
78 module:log("debug", "stanza [%s] queued until connection complete", tostring(stanza.name)); 78 host_session.log("debug", "stanza [%s] queued until connection complete", tostring(stanza.name));
79 79
80 local host, port = inject[1] or inject, tonumber(inject[2]) or 5269; 80 local host, port = inject[1] or inject, tonumber(inject[2]) or 5269;
81 81
82 local conn = addclient(host, port, proxy_listener, "*a"); 82 local conn = addclient(host, port, proxy_listener, "*a");
83 83