mod_http: Log event name when adding a HTTP app's hooks
authorMatthew Wild <mwild1@gmail.com>
Sat, 14 Mar 2015 22:39:23 +0000 (22:39 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sat, 14 Mar 2015 22:39:23 +0000 (22:39 +0000)
plugins/mod_http.lua

index 86689affdd12729cf036b0749928b95bbbdeadf8..610ae0aefc71a4f162c5609dec8a41e1121c2f07 100644 (file)
@@ -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);