Diff

plugins/mod_http_files.lua @ 12597:ba05f7e5f2a2 0.12

mod_http_files: Log warning about legacy modules using mod_http_files It is time. Most community modules should have been adjusted to work with the new (net.http.files) way. At some point this usage should be prevented. Related to #1765
author Kim Alvefur <zash@zash.se>
date Sun, 17 Jul 2022 17:05:28 +0200
parent 12387:05c250fa335a
child 12977:74b9e05af71e
line wrap: on
line diff
--- a/plugins/mod_http_files.lua	Tue Jul 26 23:44:33 2022 +0200
+++ b/plugins/mod_http_files.lua	Sun Jul 17 17:05:28 2022 +0200
@@ -74,8 +74,7 @@
 	if opts.index_files == nil then
 		opts.index_files = dir_indices;
 	end
-	-- TODO Crank up to warning
-	module:log("debug", "%s should be updated to use 'net.http.files' instead of mod_http_files", get_calling_module());
+	module:log("warn", "%s should be updated to use 'net.http.files' instead of mod_http_files", get_calling_module());
 	return fileserver.serve(opts);
 end