From f3ec84d5ef0e0dc6c1aca1ae26737ae9d13fb808 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 14 May 2023 19:01:01 +0200 Subject: mod_admin_shell: Allow logging global events with debug:logevents("*") Missing feature. It should behave like debug:events() --- plugins/mod_admin_shell.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index a3c12c37..cb3b7bac 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -1927,7 +1927,11 @@ end def_env.debug = {}; function def_env.debug:logevents(host) - helpers.log_host_events(host); + if host == "*" then + helpers.log_events(prosody.events); + else + helpers.log_host_events(host); + end return true; end -- cgit v1.2.3