Remove debug output from TUI, use verbose-only logging for tmux setup

- Debug fmt.Fprintf calls were always visible in TUI
- Added VerboseLog() to kubeexec package for use by full.go
- All tmux debug output now only shows with --verbose flag
This commit is contained in:
2026-08-09 21:46:25 +02:00
parent 37be0707ad
commit ffbf4341fa
2 changed files with 15 additions and 4 deletions
+10
View File
@@ -29,6 +29,16 @@ func SetVerbose(enabled bool, w io.Writer) {
}
}
// VerboseLog writes a message to the verbose log if enabled.
func VerboseLog(format string, args ...interface{}) {
mu.Lock()
defer mu.Unlock()
if !verbose {
return
}
fmt.Fprintf(logOut, format, args...)
}
func logCmd(name string, args ...string) {
mu.Lock()
defer mu.Unlock()