Changeset

10460:5ce6cbb5ce6a

mod_http: Log served URLs at 'info' level These are similar to the "activated service" messages from portmanager and similarily useful for the service admin to know even if they're not debugging anything.
author Kim Alvefur <zash@zash.se>
date Fri, 29 Nov 2019 21:30:08 +0100
parents 10459:7456eaa83b15
children 10461:e293fb8112e2
files plugins/mod_http.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_http.lua	Fri Nov 29 18:15:23 2019 +0100
+++ b/plugins/mod_http.lua	Fri Nov 29 21:30:08 2019 +0100
@@ -173,7 +173,7 @@
 		end
 		local services = portmanager.get_active_services();
 		if services:get("https") or services:get("http") then
-			module:log("debug", "Serving '%s' at %s", app_name, module:http_url(app_name, app_path));
+			module:log("info", "Serving '%s' at %s", app_name, module:http_url(app_name, app_path));
 		else
 			module:log("warn", "Not listening on any ports, '%s' will be unreachable", app_name);
 		end