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
This commit is contained in:
Kim Alvefur 2022-07-17 17:05:28 +02:00
parent 96301b2229
commit 78e7707791

View file

@ -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