From 78e77077910d4fefa9ce4f60827765bd1157b755 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 17 Jul 2022 17:05:28 +0200 Subject: 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 --- plugins/mod_http_files.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_http_files.lua b/plugins/mod_http_files.lua index 69389b7f..b921116a 100644 --- a/plugins/mod_http_files.lua +++ b/plugins/mod_http_files.lua @@ -74,8 +74,7 @@ function serve(opts) 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 -- cgit v1.2.3