aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-12-08 15:49:11 +0100
committerKim Alvefur <zash@zash.se>2014-12-08 15:49:11 +0100
commitaca7a4db800c8e9e1ece6765739b445fdfa4ce65 (patch)
tree29e7cd7f8fdb82fe392b0e839dd2b022a911d761 /plugins
parent1484f5bb656d129d61f04629b950a6b310358037 (diff)
downloadprosody-aca7a4db800c8e9e1ece6765739b445fdfa4ce65.tar.gz
prosody-aca7a4db800c8e9e1ece6765739b445fdfa4ce65.zip
mod_http: Log name and base URL of HTTP apps
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_http.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index 8bda1cac..76ee151b 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -84,6 +84,7 @@ function module.add_host(module)
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)");