# HG changeset patch # User Kim Alvefur # Date 1653782527 -7200 # Node ID 537054999093f1992c59fd1efb1e88217656d6ba # Parent e8a487c42b36ec24db8a8319ec1f0e65be950d46 mod_rest: Provide a log function on temporary session Fixes traceback in places using session.log() diff -r e8a487c42b36 -r 537054999093 mod_rest/mod_rest.lua --- 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