diff options
Diffstat (limited to 'nocui/stdin.go')
| -rw-r--r-- | nocui/stdin.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nocui/stdin.go b/nocui/stdin.go index 0cf2783..6aa75f5 100644 --- a/nocui/stdin.go +++ b/nocui/stdin.go @@ -7,6 +7,7 @@ import ( "strings" "strconv" + "go.wit.com/log" "go.wit.com/gui/widget" ) @@ -17,10 +18,10 @@ func simpleStdin() { s = strings.TrimSuffix(s, "\n") switch s { case "l": - log(true, "list widgets") + log.Log(NOW, "list widgets") me.rootNode.listWidgets() case "b": - log(true, "show buttons") + log.Log(NOW, "show buttons") me.rootNode.showButtons() case "d": var a widget.Action @@ -34,7 +35,7 @@ func simpleStdin() { fmt.Println("'d': enable debugging") default: i, _ := strconv.Atoi(s) - log(true, "got input:", i) + log.Log(NOW, "got input:", i) n := me.rootNode.findWidgetId(i) if (n != nil) { n.dumpWidget("found node") @@ -55,7 +56,7 @@ func (n *node) showButtons() { } func (n *node) dumpWidget(pad string) { - log(true, "node:", pad, n.WidgetId, ",", n.WidgetType, ",", n.Name) + log.Log(NOW, "node:", pad, n.WidgetId, ",", n.WidgetType, ",", n.Name) } var depth int = 0 |
