aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-07-17 17:05:28 +0200
committerKim Alvefur <zash@zash.se>2022-07-17 17:05:28 +0200
commit78e77077910d4fefa9ce4f60827765bd1157b755 (patch)
treeb0a1668828a0206f326200e78bb2e11ff41fb7cc
parent96301b2229b2ceeab1797e4bc4e29707b0a32681 (diff)
downloadprosody-78e77077910d4fefa9ce4f60827765bd1157b755.tar.gz
prosody-78e77077910d4fefa9ce4f60827765bd1157b755.zip
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
-rw-r--r--plugins/mod_http_files.lua3
1 files changed, 1 insertions, 2 deletions
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