diff options
| author | Jeff Carr <[email protected]> | 2024-01-21 11:30:12 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-21 11:30:12 -0600 |
| commit | 40f819c3a28233bccb2cd48446639e5130fe6211 (patch) | |
| tree | 5160e228edf4068a4286c3233289e67059ce0358 /addText.go | |
| parent | 4f3255c681c4a5927be7b104e1c8195f01cabdb6 (diff) | |
more logging updates
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'addText.go')
| -rw-r--r-- | addText.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -13,23 +13,23 @@ func compareStrings(n *tree.Node, ss []string) { func addText(n *tree.Node, a *widget.Action) { var tk *guiWidget tk = n.TK.(*guiWidget) - log.Warn("andlabs addText() START with a.Value =", a.Value) + log.Log(ANDLABS, "addText() START with a.Value =", a.Value) if tk == nil { log.Log(ERROR, "addText error. tk == nil", n.State.ProgName, n.WidgetId) return } - log.Warn("andlabs addText() Attempt on", n.WidgetType, "with", a.Value) + log.Log(ANDLABS, "addText() Attempt on", n.WidgetType, "with", a.Value) switch n.WidgetType { case widget.Dropdown: for i, s := range a.State.Strings { - log.Warn("andlabs a.State.Strings =", i, s) + log.Log(ANDLABS, "a.State.Strings =", i, s) _, ok := n.Strings[s] // If the key exists if ok { - log.Warn("andlabs a.State.Strings is here", i, s) + log.Log(ANDLABS, "string is already in the dropdown", i, s) } else { - log.Warn("andlabs is not here", i, s) + log.Log(ANDLABS, "adding new string to dropdown", i, s) addDropdownName(n, s) // TODO: make numbers n.Strings[s] = 21 @@ -40,5 +40,5 @@ func addText(n *tree.Node, a *widget.Action) { default: log.Log(ERROR, "plugin Send() Don't know how to addText on", n.WidgetType, "yet", a.ActionType) } - log.Log(CHANGE, "addText() END with a.Value =", a.Value) + log.Log(ANDLABS, "addText() END with a.Value =", a.Value) } |
