Software /
code /
prosody
Changeset
13104:8c786880e28d
mod_admin_shell: Allow logging global events with debug:logevents("*")
Missing feature. It should behave like debug:events()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 14 May 2023 19:01:01 +0200 |
parents | 13103:42c2a9787242 |
children | 13105:7d9e26003b05 |
files | plugins/mod_admin_shell.lua |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Sun May 14 18:48:20 2023 +0200 +++ b/plugins/mod_admin_shell.lua Sun May 14 19:01:01 2023 +0200 @@ -1927,7 +1927,11 @@ 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