mod_http: Log name and base URL of HTTP apps
authorKim Alvefur <zash@zash.se>
Mon, 08 Dec 2014 15:49:11 +0100
changeset 6533 35ebcb733c4c
parent 6532 a2dadaa9137f
child 6534 18f4973849b1
mod_http: Log name and base URL of HTTP apps
plugins/mod_http.lua
--- a/plugins/mod_http.lua	Mon Dec 08 15:48:36 2014 +0100
+++ b/plugins/mod_http.lua	Mon Dec 08 15:49:11 2014 +0100
@@ -84,6 +84,7 @@
 		local app_name = event.item.name;
 		local default_app_path = event.item.default_path or "/"..app_name;
 		local app_path = get_base_path(module, app_name, default_app_path);
+		module:log("debug", "Serving '%s' at %s", app_name, module:http_url(app_name, app_path));
 		if not app_name then
 			-- TODO: Link to docs
 			module:log("error", "HTTP app has no 'name', add one or use module:provides('http', app)");