changeset 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 d4b0a995e5e3
files mod_s2soutinjection/mod_s2soutinjection.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;