Diff

plugins/mod_http.lua @ 6530:35ebcb733c4c

mod_http: Log name and base URL of HTTP apps
author Kim Alvefur <zash@zash.se>
date Mon, 08 Dec 2014 15:49:11 +0100
parent 6504:e1659f32852e
child 6583:93bab6958683
line wrap: on
line diff
--- 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)");