Add health status to debug

This commit is contained in:
Viktor Liu
2026-02-08 21:04:14 +08:00
parent 99e6b1eda4
commit 51e63c246b
5 changed files with 117 additions and 11 deletions

View File

@@ -68,8 +68,14 @@ var debugPingCmd = &cobra.Command{
SilenceUsage: true,
}
var debugLogCmd = &cobra.Command{
Use: "log",
Short: "Manage client logging",
Long: "Commands to manage logging settings for a client connected through the proxy.",
}
var debugLogLevelCmd = &cobra.Command{
Use: "loglevel <account-id> <level>",
Use: "level <account-id> <level>",
Short: "Set client log level",
Long: "Set the log level for a client (trace, debug, info, warn, error).",
Args: cobra.ExactArgs(2),
@@ -109,7 +115,8 @@ func init() {
debugCmd.AddCommand(debugStatusCmd)
debugCmd.AddCommand(debugSyncCmd)
debugCmd.AddCommand(debugPingCmd)
debugCmd.AddCommand(debugLogLevelCmd)
debugLogCmd.AddCommand(debugLogLevelCmd)
debugCmd.AddCommand(debugLogCmd)
debugCmd.AddCommand(debugStartCmd)
debugCmd.AddCommand(debugStopCmd)