diff options
author | Kim Alvefur <zash@zash.se> | 2022-05-30 14:54:10 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-05-30 14:54:10 +0200 |
commit | 8ba6d3a2b1e2eb5dee1ceb25bde0f799fb4b793c (patch) | |
tree | 75d5b17d8fa1837e111a6b12d7ef9d5ef7ac0aad | |
parent | 677d77e82e0bae7d8d94c910df07ad82fdbcab6d (diff) | |
download | prosody-8ba6d3a2b1e2eb5dee1ceb25bde0f799fb4b793c.tar.gz prosody-8ba6d3a2b1e2eb5dee1ceb25bde0f799fb4b793c.zip |
mod_admin_shell: Document the 'watch' section in the built-in help
-rw-r--r-- | plugins/mod_admin_shell.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 02f9a894..ca9cb0d5 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -240,6 +240,7 @@ function commands.help(session, data) print(row { "dns"; "Commands to manage and inspect the internal DNS resolver" }) print(row { "xmpp"; "Commands for sending XMPP stanzas" }) print(row { "debug"; "Commands for debugging the server" }) + print(row { "watch"; "Commands for watching live logs from the server" }) print(row { "config"; "Reloading the configuration, etc." }) print(row { "columns"; "Information about customizing session listings" }) print(row { "console"; "Help regarding the console itself" }) @@ -316,6 +317,9 @@ function commands.help(session, data) print [[debug:logevents(host) - Enable logging of fired events on host]] print [[debug:events(host, event) - Show registered event handlers]] print [[debug:timers() - Show information about scheduled timers]] + elseif section == "watch" then + print [[watch:log() - Follow debug logs]] + print [[watch:stanzas(target, filter) - Watch live stanzas matching the specified target and filter]] elseif section == "console" then print [[Hey! Welcome to Prosody's admin console.]] print [[First thing, if you're ever wondering how to get out, simply type 'quit'.]] |