summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/debug.go b/debug.go
index c4a0bfb..dbcccc3 100644
--- a/debug.go
+++ b/debug.go
@@ -5,7 +5,6 @@ package main
import (
"fmt"
- "strings"
"github.com/awesome-gocui/gocui"
"go.wit.com/log"
@@ -83,16 +82,9 @@ func (tk *guiWidget) dumpWidget(s string) {
}
var end string
if tk.node.WidgetType == widget.Box {
- end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, tk.node.State.Direction.String())
+ end = fmt.Sprintf("%-8s %-8s %s %s", tk.node.WidgetType, tk.cuiName, tk.node.State.Direction.String(), tk.String())
} else {
- curval := strings.TrimSpace(tk.node.ProgName())
- if curval == "" {
- curval = strings.TrimSpace(tk.node.GetLabel())
- }
- if curval == "" {
- curval = strings.TrimSpace(tk.labelN)
- }
- end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, curval)
+ end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, tk.String())
}
log.Log(GOCUI, s1, s, end)
}