# HG changeset patch # User Kim Alvefur # Date 1658070328 -7200 # Node ID ba05f7e5f2a27b57994583fa7d00743bfbe052dd # Parent 1832b6c9c6edc2e53de26c6cde289bec1945cec3 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 diff -r 1832b6c9c6ed -r ba05f7e5f2a2 plugins/mod_http_files.lua --- 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