Diff

net/http/server.lua @ 6529:a2dadaa9137f

net.http.server: Log names of the events fired
author Kim Alvefur <zash@zash.se>
date Mon, 08 Dec 2014 15:48:36 +0100
parent 6382:57d23c26039b
child 6602:61b6a4fc65f1
child 6604:478308ee29dd
child 6607:64e6b88b6b21
line wrap: on
line diff
--- a/net/http/server.lua	Sun Dec 07 17:56:25 2014 +0100
+++ b/net/http/server.lua	Mon Dec 08 15:48:36 2014 +0100
@@ -218,7 +218,7 @@
 
 	local event = request.method.." "..host..request.path:match("[^?]*");
 	local payload = { request = request, response = response };
-	--log("debug", "Firing event: %s", event);
+	log("debug", event);
 	local result = events.fire_event(event, payload);
 	if result ~= nil then
 		if result ~= true then