diff options
Diffstat (limited to 'addNode.go')
| -rw-r--r-- | addNode.go | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,8 +1,6 @@ package tree import ( - "errors" - "go.wit.com/log" "go.wit.com/widget" ) @@ -35,9 +33,9 @@ func (me *TreeInfo) AddNode(a *widget.Action) *Node { p := me.treeRoot.FindWidgetId(a.ParentId) n.Parent = p if n.Parent == nil { - log.Error(errors.New("tree.AddNode() ERROR n.Parent == nil"), a.WidgetId, a.ParentId, a.ActionType) - log.Warn("AddNode() ERROR n.Parent == nil", a.WidgetId, a.ParentId, a.ActionType) - log.Warn("AddNode() ERROR n.Parent == nil", a.WidgetId, a.ParentId, a.WidgetType) + log.Log(TREEWARN, "AddNode() ERROR n.Parent == nil n =", n.WidgetId, n.WidgetType, n.GetProgName()) + log.Log(TREEWARN, "AddNode() ERROR n.Parent == nil a =", a.WidgetId, a.WidgetType, a.State.ProgName) + log.Log(TREEWARN, "AddNode() ERROR n.Parent == nil a.pid =", a.ParentId) return n } log.Log(TREE, "AddNode() Adding to parent =", p.ParentId, p.WidgetType, p.GetProgName()) |
