summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-31 19:45:43 -0600
committerJeff Carr <[email protected]>2023-12-31 19:45:43 -0600
commit53ce3a8252090d5fb75d7fc1e3cd75a72c1415c6 (patch)
tree155918ef93a63a92b165e6724ced41966876b746
parente85d453fd8bd75e290f2306c3b0150444c57ce2b (diff)
log flag debugging
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--args.go4
-rw-r--r--common.go2
2 files changed, 4 insertions, 2 deletions
diff --git a/args.go b/args.go
index fbcfe3d..52810df 100644
--- a/args.go
+++ b/args.go
@@ -20,8 +20,8 @@ func init() {
newlog.Register("gui", "debugGui", &debugGui)
- for _, s := range newlog.ListAll() {
- newlog.Info("go.wit.org/gui ListAll() returned:", s)
+ for _, s := range newlog.ListFlags() {
+ newlog.Info("go.wit.org/gui ListFlags() returned:", s)
}
}
diff --git a/common.go b/common.go
index 9a4300d..6bfbeaa 100644
--- a/common.go
+++ b/common.go
@@ -101,6 +101,8 @@ func (n *Node) AppendText(str string) {
func (n *Node) GetText() string {
if (n.S != n.Text) {
newlog.Warn("GetText() is screwed up. TODO: fix this dumb crap")
+ stuff := newlog.ListFlags()
+ newlog.Warn("ListFlags() =", stuff)
}
if (n.S != "") {
return n.S