aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-05-14 19:01:01 +0200
committerKim Alvefur <zash@zash.se>2023-05-14 19:01:01 +0200
commitf3ec84d5ef0e0dc6c1aca1ae26737ae9d13fb808 (patch)
tree91191a824dae6cb554d27bd4bdb9b1572ebf126e /plugins
parent223a8b69a443e17981926f8524c892ccbb6f09ec (diff)
downloadprosody-f3ec84d5ef0e0dc6c1aca1ae26737ae9d13fb808.tar.gz
prosody-f3ec84d5ef0e0dc6c1aca1ae26737ae9d13fb808.zip
mod_admin_shell: Allow logging global events with debug:logevents("*")
Missing feature. It should behave like debug:events()
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_shell.lua6
1 files changed, 5 insertions, 1 deletions
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