From ba70be3064c1d082eb0e9146562b7f07dd894fb0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 21 Jan 2024 11:37:00 -0600 Subject: cleaner logging output Signed-off-by: Jeff Carr --- addText.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'addText.go') diff --git a/addText.go b/addText.go index be72cc1..1e6a07d 100644 --- a/addText.go +++ b/addText.go @@ -29,7 +29,7 @@ func (n *Node) addText(newS string) { n.strings = append(n.strings, newS) n.mu.Unlock() mylock.Unlock() - log.Warn("addText() has strings:", n.strings) + log.Log(INFO, "addText() has strings:", n.strings) */ // inform the toolkits @@ -43,9 +43,9 @@ func (n *Node) AddText(str string) bool { if !n.Ready() { return false } - log.Warn("AddText() value =", str) - log.Warn("AddText() value =", str) - log.Warn("AddText() value =", str) + log.Log(INFO, "AddText() value =", str) + log.Log(INFO, "AddText() value =", str) + log.Log(INFO, "AddText() value =", str) // for some reason, the n.mu.Lock() doesn't seem to protect the append() function on strings // switched to a map. I suspect that is what maps are for because they are safer -- cgit v1.2.3