diff options
| author | Jeff Carr <[email protected]> | 2025-10-22 17:24:48 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-22 17:24:48 -0500 | 
| commit | bb9c69801ab4c88d4a91e69d0e10e965d4ee3740 (patch) | |
| tree | 16a0ac22827b9e2d820bb643c650c300960037ae | |
| parent | 6856b9c4943c994e77d37a69d11027783a95437c (diff) | |
remove all log usagev0.5.31
| -rw-r--r-- | generateGui.go | 22 | ||||
| -rw-r--r-- | generateSortFuncs.go | 4 | 
2 files changed, 12 insertions, 14 deletions
diff --git a/generateGui.go b/generateGui.go index fc63e14..8289849 100644 --- a/generateGui.go +++ b/generateGui.go @@ -8,8 +8,6 @@ import (  	"io"  	"os"  	"unicode" - -	"go.wit.com/log"  )  // this file is named poorly. It has more than Sort() @@ -49,7 +47,7 @@ func (pb *Files) makeGuiFile(pf *File) error {  			FRUIT := msg.GuiVarName  			fruitVars := color.Vars  			pf.generateAutoTablePB(newf, FRUITS, FRUIT, fruitVars) -			log.Printf("Added GUI functions for protobuf '%s' with record '%s' using mutex '%s'\n", msg.Name, msg.GuiVarName, color.Lockname) +			fmt.Printf("Added GUI functions for protobuf '%s' with record '%s' using mutex '%s'\n", msg.Name, msg.GuiVarName, color.Lockname)  		}  	} @@ -71,12 +69,12 @@ func (pf *File) generateAutoTablePB(newf *os.File, FRUITS string, FRUIT string,  			continue  		}  		if v.VarType == "string" { -			log.Printf("make Add function here %s %s %s\n", FRUITS, FRUIT, v.VarName) +			fmt.Printf("make Add function here %s %s %s\n", FRUITS, FRUIT, v.VarName)  			guiAddStringFunc(newf, FRUITS, FRUIT, v.VarName)  			continue  		}  		if v.VarType == "int64" { -			log.Printf("make Add function here %s %s %s\n", FRUITS, FRUIT, v.VarName) +			fmt.Printf("make Add function here %s %s %s\n", FRUITS, FRUIT, v.VarName)  			guiAddIntFunc(newf, FRUITS, FRUIT, v.VarName)  			continue  		} @@ -90,7 +88,7 @@ func (pf *File) generateAutoTablePB(newf *os.File, FRUITS string, FRUIT string,  			}  			VARNAME := v.VarName  			funcdef := msg.newSortType(wSort, PARENT, VARNAME) -			log.Printf("Adding %s\n", funcdef) +			fmt.Printf("Adding %s\n", funcdef)  		*/  	}  	guiUpdate(newf, FRUITS, FRUIT) @@ -208,7 +206,7 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) {  	fmt.Fprintln(w, "}")  	fmt.Fprintln(w, "")  	fmt.Fprintln(w, "func (mt *"+FRUITS+"Table) ShowTable() {") -	fmt.Fprintln(w, "	// log.Info(\"ShowTable() SENDING TO GUI\")") +	fmt.Fprintln(w, "	// fmt.Println(\"ShowTable() SENDING TO GUI\")")  	fmt.Fprintln(w, "	mt.MakeTable()")  	/*  		fmt.Fprintln(w, "	if mt.parent == nil {") @@ -310,7 +308,7 @@ func guiStringFuncs(w io.Writer, ZOOPB string, FRUITS string, FRUIT string) {  	fmt.Fprintln(w, "				_ = err // do something with err someday (?)")  	fmt.Fprintln(w, "				r.Vals = append(r.Vals, anyProto)")  	fmt.Fprintln(w, "			default:") -	fmt.Fprintln(w, "				log.Info(\"cell unhandled type\", r.Attr.Type)") +	fmt.Fprintln(w, "				fmt.Println(\"cell unhandled type\", r.Attr.Type)")  	fmt.Fprintln(w, "			}")  	fmt.Fprintln(w, "			// cellTime := r.Vals[row]")  	fmt.Fprintln(w, "			// s := shell.FormatDuration(time.Since(cellTime.AsTime()))") @@ -361,10 +359,10 @@ func guiTableDelete(w io.Writer, FRUITS string, FRUIT string) {  	fmt.Fprintln(w, "")  	fmt.Fprintln(w, "func (mt *"+FRUITS+"Table) Delete() {")  	fmt.Fprintln(w, "	if mt == nil {") -	fmt.Fprintln(w, "		log.Info(\"mt == nil table already deleted\")") +	fmt.Fprintln(w, "		fmt.Println(\"mt == nil table already deleted\")")  	fmt.Fprintln(w, "		return")  	fmt.Fprintln(w, "	}") -	fmt.Fprintln(w, "	// log.Info(\"table Delete here\")") +	fmt.Fprintln(w, "	// fmt.Println(\"table Delete here\")")  	fmt.Fprintln(w, "	mt.parent.DeleteTable(mt.pb)")  	fmt.Fprintln(w, "}")  } @@ -373,12 +371,12 @@ func guiTableCustom(w io.Writer, FRUITS string, fRUITS string, FRUIT string, fRU  	fmt.Fprintln(w, "")  	fmt.Fprintln(w, "func (mt *"+FRUITS+"Table) "+fRUITS+"Custom(w *guipb.Widget) {")  	fmt.Fprintln(w, "	row := mt.x."+FRUITS+"[w.Location.Y-1]") -	fmt.Fprintln(w, "	// log.Info(\"got to "+fRUITS+"Custom() with\", w.Location.X, w.Location.Y-1)") +	fmt.Fprintln(w, "	// fmt.Println(\"got to "+fRUITS+"Custom() with\", w.Location.X, w.Location.Y-1)")  	fmt.Fprintln(w, "")  	fmt.Fprintln(w, "	for i, sf := range mt.Funcs {")  	fmt.Fprintln(w, "		if i == int(w.Location.X) {")  	fmt.Fprintln(w, "			if sf.Custom != nil {") -	fmt.Fprintln(w, "				log.Info(\"doing Custom() func for button\")") +	fmt.Fprintln(w, "				fmt.Println(\"doing Custom() func for button\")")  	fmt.Fprintln(w, "				sf.Custom(row)")  	fmt.Fprintln(w, "				return")  	fmt.Fprintln(w, "			}") diff --git a/generateSortFuncs.go b/generateSortFuncs.go index 305896e..f0a0a9e 100644 --- a/generateSortFuncs.go +++ b/generateSortFuncs.go @@ -155,7 +155,7 @@ func (msg *MsgName) addIterBy(w io.Writer, FRUITS, FRUIT, APPLE, SORTNAME string  	fmt.Fprintln(w, "func (x *"+FRUITS+") IterBy"+APPLE+"() iter.Seq[*"+FRUIT+"] {")  	fmt.Fprintln(w, "	items := x.selectAll"+FRUITS+"()")  	fmt.Fprintln(w, "	sort.Sort("+SORTNAME+"(items))") -	fmt.Fprintln(w, "	// log.Println(\"Made Iter.Seq[] with length\", len(items))") +	fmt.Fprintln(w, "	// fmt.Println(\"Made Iter.Seq[] with length\", len(items))")  	fmt.Fprintln(w, "	return func(yield func(*"+FRUIT+") bool) {")  	fmt.Fprintln(w, "		for _, v := range items {")  	fmt.Fprintln(w, "			if !yield(v) {") @@ -173,7 +173,7 @@ func (msg *MsgName) addIterAll(w io.Writer, FRUITS, FRUIT string) string {  	fmt.Fprintln(w, "// Iterate 'for x := range' syntax using the awesome golang 1.24 'iter'")  	fmt.Fprintln(w, funcdef)  	fmt.Fprintln(w, "	items := x.selectAll"+FRUITS+"()") -	fmt.Fprintln(w, "	// log.Println(\"Made All() Iter.Seq[] with length\", len(items))") +	fmt.Fprintln(w, "	// fmt.Println(\"Made All() Iter.Seq[] with length\", len(items))")  	fmt.Fprintln(w, "	return func(yield func(*"+FRUIT+") bool) {")  	fmt.Fprintln(w, "		for _, v := range items {")  	fmt.Fprintln(w, "			if !yield(v) {")  | 
