changeset 4955:537054999093

mod_rest: Provide a log function on temporary session Fixes traceback in places using session.log()
author Kim Alvefur <zash@zash.se>
date Sun, 29 May 2022 02:02:07 +0200
parents e8a487c42b36
children 65870d42a7b1
files mod_rest/mod_rest.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_rest/mod_rest.lua	Sat May 28 16:43:04 2022 +0200
+++ b/mod_rest/mod_rest.lua	Sun May 29 02:02:07 2022 +0200
@@ -305,6 +305,7 @@
 		end
 		from = jid.join(origin.username, origin.host, origin.resource);
 		origin.type = "c2s";
+		origin.log = module._log;
 	end
 	local payload, err = parse_request(request, path);
 	if not payload then