Comparison

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
comparison
equal deleted inserted replaced
6589:015f2b4e2f9a 6590:7726b627c3ea
100 return _handler(event, path); 100 return _handler(event, path);
101 end; 101 end;
102 end 102 end
103 if not app_handlers[event_name] then 103 if not app_handlers[event_name] then
104 app_handlers[event_name] = handler; 104 app_handlers[event_name] = handler;
105 module:log("debug", "Adding app '%s' to handle %s", app_name, event_name);
105 module:hook_object_event(server, event_name, handler); 106 module:hook_object_event(server, event_name, handler);
106 else 107 else
107 module:log("warn", "App %s added handler twice for '%s', ignoring", app_name, event_name); 108 module:log("warn", "App %s added handler twice for '%s', ignoring", app_name, event_name);
108 end 109 end
109 else 110 else