mod_storage_s3: Fix logging
authorKim Alvefur <zash@zash.se>
Sat, 11 Nov 2023 22:43:34 +0100
changeset 5703 83a2fb6df746
parent 5702 991fb904fa49
child 5704 9de7a1b36efb
mod_storage_s3: Fix logging Seems request and response loggers is only a thing on http requests and responses from net.http.server, not net.http requests.
mod_storage_s3/mod_storage_s3.lua
--- a/mod_storage_s3/mod_storage_s3.lua	Sat Nov 11 22:32:18 2023 +0100
+++ b/mod_storage_s3/mod_storage_s3.lua	Sat Nov 11 22:43:34 2023 +0100
@@ -144,7 +144,7 @@
 	elseif content_type == "application/x-www-form-urlencoded" then
 		return httputil.formdecode(response.body);
 	else
-		response.log("warn", "Unknown response data type %s", content_type);
+		module:log("warn", "Unknown response data type %s", content_type);
 		return response.body;
 	end
 end