mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
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:
parent
96301b2229
commit
78e7707791
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue