summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'init.go')
-rw-r--r--init.go16
1 files changed, 11 insertions, 5 deletions
diff --git a/init.go b/init.go
index ba82b78..66dc673 100644
--- a/init.go
+++ b/init.go
@@ -18,9 +18,9 @@ func (me *TreeInfo) catchActionChannel() {
panic(-1)
}
}()
- log.Info("catchActionChannel() START")
+ log.Log(TREE, "catchActionChannel() START")
for {
- log.Info("catchActionChannel() for loop")
+ log.Log(TREE, "catchActionChannel() for loop")
select {
case a := <-me.pluginChan:
log.Verbose("catchActionChannel() on ", a.WidgetId, a.WidgetType, a.ProgName)
@@ -41,7 +41,7 @@ func (me *TreeInfo) catchActionChannel() {
me.ActionFromChannel(a)
}
muAction.Unlock()
- // log.Info("catchActionChannel() STUFF END", a.WidgetId, a.ActionType, a.WidgetType)
+ // log.Log(TREE, "catchActionChannel() STUFF END", a.WidgetId, a.ActionType, a.WidgetType)
}
}
}
@@ -50,8 +50,14 @@ func New() *TreeInfo {
me := new(TreeInfo)
me.pluginChan = make(chan widget.Action, 1)
- log.Info("Init() start channel reciever")
+ /*
+ full := "go.wit.com/gui"
+ short := "gui"
+ TREE = log.NewFlag("TREE", true, full, short, "treeRoot info")
+ */
+
+ log.Log(TREE, "Init() start channel reciever")
go me.catchActionChannel()
- log.Info("Init() END")
+ log.Log(TREE, "Init() END")
return me
}