projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b7e8bc
)
mod_http: Log event name when adding a HTTP app's hooks
author
Matthew Wild
<mwild1@gmail.com>
Sat, 14 Mar 2015 22:39:23 +0000
(22:39 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Sat, 14 Mar 2015 22:39:23 +0000
(22:39 +0000)
plugins/mod_http.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_http.lua
b/plugins/mod_http.lua
index 86689affdd12729cf036b0749928b95bbbdeadf8..610ae0aefc71a4f162c5609dec8a41e1121c2f07 100644
(file)
--- 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);