diff options
| author | Jeff Carr <[email protected]> | 2024-01-08 20:17:49 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-08 20:17:49 -0600 |
| commit | 2a9724d7a89733db8c41571a8b5d9d0e1f0d76b3 (patch) | |
| tree | 471510c5d1bf2d12571c538b22686d2dcec5ff1f /nocui/main.go | |
| parent | 4a079f8346fb54a3f4b7e15c3d89701f643099ce (diff) | |
move to 'go.wit.com/log'
Signed-off-by: Jeff Carr <[email protected]>
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") } |
