From 223a8b69a443e17981926f8524c892ccbb6f09ec Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 14 May 2023 18:48:20 +0200 Subject: net.http.server: Remove "Firing event" logs, use event logging instead Since these are noisy and we have the thing in util.helpers to log events fired. The new status line events are meant to replace these as they include more useful info. --- net/http/server.lua | 4 ---- 1 file changed, 4 deletions(-) (limited to 'net') diff --git a/net/http/server.lua b/net/http/server.lua index 38c54d8c..fdcbde4a 100644 --- a/net/http/server.lua +++ b/net/http/server.lua @@ -289,11 +289,9 @@ function handle_request(conn, request, finish_cb) local global_event = request.method.." "..request.path:match("[^?]*"); local payload = { request = request, response = response }; - request.log("debug", "Firing event: %s", global_event); local result = events.fire_event(global_event, payload); if result == nil and is_head_request then local global_head_event = "GET "..request.path:match("[^?]*"); - request.log("debug", "Firing event: %s", global_head_event); result = events.fire_event(global_head_event, payload); end if result == nil then @@ -314,12 +312,10 @@ function handle_request(conn, request, finish_cb) end local host_event = request.method.." "..host..request.path:match("[^?]*"); - request.log("debug", "Firing event: %s", host_event); result = events.fire_event(host_event, payload); if result == nil and is_head_request then local host_head_event = "GET "..host..request.path:match("[^?]*"); - request.log("debug", "Firing event: %s", host_head_event); result = events.fire_event(host_head_event, payload); end end -- cgit v1.2.3