aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-29 22:48:36 +0200
committerKim Alvefur <zash@zash.se>2020-04-29 22:48:36 +0200
commit66f554d5aaeb8278b9a626b6201a1d3cc51d2919 (patch)
treeb9b1af8dc9009b3f010a1c054b64b58e2b897fc3 /plugins
parentedbf00f460c104b5b99730abd8bb05288c72d810 (diff)
downloadprosody-66f554d5aaeb8278b9a626b6201a1d3cc51d2919.tar.gz
prosody-66f554d5aaeb8278b9a626b6201a1d3cc51d2919.zip
mod_admin_telnet: Document (in the internal help) debug commands
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_telnet.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 5407b737..71a9420b 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -251,6 +251,7 @@ function commands.help(session, data)
print [[port - Commands to manage ports the server is listening on]]
print [[dns - Commands to manage and inspect the internal DNS resolver]]
print [[xmpp - Commands for sending XMPP stanzas]]
+ print [[debug - Commands for debugging the server]]
print [[config - Reloading the configuration, etc.]]
print [[console - Help regarding the console itself]]
elseif section == "c2s" then
@@ -299,6 +300,10 @@ function commands.help(session, data)
elseif section == "config" then
print [[config:reload() - Reload the server configuration. Modules may need to be reloaded for changes to take effect.]]
print [[config:get([host,] option) - Show the value of a config option.]]
+ elseif section == "debug" then
+ 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 == "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'.]]