mod_http: Increase severity of loading unreachable http modules
authorKim Alvefur <zash@zash.se>
Sat, 15 Jan 2022 17:37:07 +0100
changeset 12196 6a772a0c0dfd
parent 12195 8b57362f1176
child 12197 a6d2b536c41a
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’
plugins/mod_http.lua
--- 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