mod_http: Increase severity of loading unreachable http modules
This is either caused by an earlier failure to bind http/s ports, in
which case that should be corrected, or explicitly disbling the http/s
ports, in which case ... why enable http modules?
Suggested by jonas’
--- a/plugins/mod_http.lua Sat Nov 27 12:26:15 2021 +0100
+++ b/plugins/mod_http.lua Sat Jan 15 17:37:07 2022 +0100
@@ -226,7 +226,7 @@
if services:get("https") or services:get("http") then
module:log("info", "Serving '%s' at %s", app_name, module:http_url(app_name, app_path));
elseif prosody.process_type == "prosody" then
- module:log("warn", "Not listening on any ports, '%s' will be unreachable", app_name);
+ module:log("error", "Not listening on any ports, '%s' will be unreachable", app_name);
end
end