diff options
Diffstat (limited to 'nocui/main.go')
| -rw-r--r-- | nocui/main.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nocui/main.go b/nocui/main.go index 2188928..363c893 100644 --- a/nocui/main.go +++ b/nocui/main.go @@ -2,23 +2,24 @@ package main import ( "sync" + "go.wit.com/log" "go.wit.com/gui/widget" ) var muAction sync.Mutex func catchActionChannel() { - log(logNow, "catchActionChannel() START") + log.Log(NOW, "catchActionChannel() START") for { - log(logNow, "catchActionChannel() for loop") + log.Log(NOW, "catchActionChannel() for loop") select { case a := <-pluginChan: - log(logNow, "catchActionChannel() SELECT widget id =", a.WidgetId, a.Name) - log(logNow, "catchActionChannel() STUFF", a.WidgetId, a.ActionType, a.WidgetType) + log.Log(NOW, "catchActionChannel() SELECT widget id =", a.WidgetId, a.Name) + log.Log(NOW, "catchActionChannel() STUFF", a.WidgetId, a.ActionType, a.WidgetType) muAction.Lock() doAction(&a) muAction.Unlock() - log(logNow, "catchActionChannel() STUFF END", a.WidgetId, a.ActionType, a.WidgetType) + log.Log(NOW, "catchActionChannel() STUFF END", a.WidgetId, a.ActionType, a.WidgetType) } } } @@ -42,14 +43,13 @@ func PluginChannel() chan widget.Action { // This is important. This sets the defaults for the gui. Without this, there isn't correct padding, etc func init() { - log(logNow, "Init() START") - log(logInfo, "Init()") + log.Log(INFO, "Init()") // andlabs = make(map[int]*andlabsT) pluginChan = make(chan widget.Action, 1) - log(logNow, "Init() start channel reciever") + log.Log(NOW, "Init() start channel reciever") go catchActionChannel() go simpleStdin() - log(logNow, "Init() END") + log.Log(NOW, "Init() END") } |
