Software /
code /
prosody
Diff
plugins/mod_admin_shell.lua @ 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 |
parent | 13089:41598b7ec543 |
child | 13105:7d9e26003b05 |
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