log flag debugging

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-12-31 19:45:43 -06:00
parent d2b3f7e074
commit 3c26b3843f
2 changed files with 4 additions and 2 deletions

View File

@ -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)
}
}

View File

@ -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