Software /
code /
prosody
Diff
plugins/mod_http.lua @ 6590:7726b627c3ea
mod_http: Log event name when adding a HTTP app's hooks
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 14 Mar 2015 22:39:23 +0000 |
parent | 6026:8a8be471ec72 |
child | 6596:27c10ee82d60 |
line wrap: on
line diff
--- a/plugins/mod_http.lua Sat Mar 14 22:39:03 2015 +0000 +++ b/plugins/mod_http.lua Sat Mar 14 22:39:23 2015 +0000 @@ -102,6 +102,7 @@ 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);