From c71ab7f1ef1ede387586af1e9160761dc2c1bfa3 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 14 May 2023 19:02:26 +0200 Subject: mod_admin_shell: Allow logging HTTP events with debug:logevents("http") Mirroring debug:events("http"), and to replace the "Firing event: GET /" log lines in net.http.server --- plugins/mod_admin_shell.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index cb3b7bac..199bdef0 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -1929,6 +1929,9 @@ def_env.debug = {}; function def_env.debug:logevents(host) if host == "*" then helpers.log_events(prosody.events); + elseif host == "http" then + helpers.log_events(require "prosody.net.http.server"._events); + return true else helpers.log_host_events(host); end -- cgit v1.2.3