Skip to content

Commit

Permalink
kamctl: added srv debug subcommand
Browse files Browse the repository at this point in the history
- control server debug level via rpc

(cherry picked from commit 6b5aa70)
  • Loading branch information
miconda committed Feb 9, 2021
1 parent a2e0e49 commit 3027f8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/kamctl/kamctl
Expand Up @@ -1790,6 +1790,15 @@ ksr_srv() {
mecho "list server rpc commands"
ctl_cmd_run system.listMethods
;;
debug)
require_ctlengine
mecho "server debug level command"
if [ $# -lt 2 ] ; then
ctl_cmd_run corex.debug
else
ctl_cmd_run corex.debug $2
fi
;;
version)
require_ctlengine
mecho "list server version"
Expand Down
1 change: 1 addition & 0 deletions utils/kamctl/kamctl.base
Expand Up @@ -554,6 +554,7 @@ cat <<EOF
srv sockets ................... show the list of listen sockets
srv aliases ................... show the list of server aliases
srv rpclist ................... show the list of server rpc commands
srv debug [<level>] ........... control the server debug level
srv version ................... show the server version
EOF
}
Expand Down

0 comments on commit 3027f8b

Please sign in to comment.