Software /
code /
prosody
Changeset
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 |
parents | 6529:a2dadaa9137f |
children | 6531:18f4973849b1 |
files | plugins/mod_http.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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)");