Changeset

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
parents 12593:1832b6c9c6ed
children 12598:a2624315d30e
files plugins/mod_http_files.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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