Skip to content

Commit 1ace77e

Browse files
authored
Merge pull request #164 from shelltime/feat/daemon-status-show-ccotel-debug
feat(daemon): display CCOtel debug config in status command
2 parents c7cdfd4 + 2a91532 commit 1ace77e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

commands/daemon.status.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ func commandDaemonStatus(c *cli.Context) error {
6464
fmt.Printf(" Socket Path: %s\n", socketPath)
6565

6666
if cfg.CCOtel != nil && cfg.CCOtel.Enabled != nil && *cfg.CCOtel.Enabled {
67-
fmt.Printf(" CCOtel: enabled (port %d)\n", cfg.CCOtel.GRPCPort)
67+
debugStatus := "off"
68+
if cfg.CCOtel.Debug != nil && *cfg.CCOtel.Debug {
69+
debugStatus = "on"
70+
}
71+
fmt.Printf(" CCOtel: enabled (port %d, debug %s)\n", cfg.CCOtel.GRPCPort, debugStatus)
6872
} else {
6973
fmt.Println(" CCOtel: disabled")
7074
}

0 commit comments

Comments
 (0)