comparison mod_log_http/mod_log_http.lua @ 2705:3f44abfe7264

mod_log_http: Remove accidentally-committed debugging code
author Matthew Wild <mwild1@gmail.com>
date Tue, 25 Apr 2017 12:02:36 +0100
parents 7a5dae85f26f
children 456b9f608fcf
comparison
equal deleted inserted replaced
2704:5ab27d3741b4 2705:3f44abfe7264
67 module:log("warn", "Failed to make request to %s!", event.url); 67 module:log("warn", "Failed to make request to %s!", event.url);
68 end); 68 end);
69 69
70 module:hook_object_event(http.events, "response", function (event) 70 module:hook_object_event(http.events, "response", function (event)
71 module:log("warn", "Received response %d from %s!", event.code, event.url); 71 module:log("warn", "Received response %d from %s!", event.code, event.url);
72 for k,v in pairs(event.response) do print("=====", k, v) end
73 append_response(event.request.id, event.response); 72 append_response(event.request.id, event.response);
74 end); 73 end);
75 74
76 function module.unload() 75 function module.unload()
77 log:close(); 76 log:close();