aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-03-14 22:39:23 +0000
committerMatthew Wild <mwild1@gmail.com>2015-03-14 22:39:23 +0000
commit9f9a4c8e6c42bfa5b338c2a7d4c43c618f79e917 (patch)
tree857b4edf9072307585228c684de1a2caad3d967c /plugins/mod_http.lua
parentf25f49c34d9ea22cdcdde8b14104cb13d723c3d4 (diff)
downloadprosody-9f9a4c8e6c42bfa5b338c2a7d4c43c618f79e917.tar.gz
prosody-9f9a4c8e6c42bfa5b338c2a7d4c43c618f79e917.zip
mod_http: Log event name when adding a HTTP app's hooks
Diffstat (limited to 'plugins/mod_http.lua')
-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 86689aff..610ae0ae 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -102,6 +102,7 @@ function module.add_host(module)
end
if not app_handlers[event_name] then
app_handlers[event_name] = handler;
+ module:log("debug", "Adding app '%s' to handle %s", app_name, event_name);
module:hook_object_event(server, event_name, handler);
else
module:log("warn", "App %s added handler twice for '%s', ignoring", app_name, event_name);