From e24c2c2eb3feb5083a74a9b2cb396bcbcb0ac52d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 10 Jan 2024 18:39:58 -0600 Subject: go.wit.com/log change Signed-off-by: Jeff Carr --- chomp.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'chomp.go') diff --git a/chomp.go b/chomp.go index ed30315..9bf331a 100644 --- a/chomp.go +++ b/chomp.go @@ -6,11 +6,14 @@ package shell send it anything, always get back a string */ -import "log" -import "fmt" -import "reflect" -import "strings" -import "bytes" +import ( + "fmt" + "reflect" + "strings" + "bytes" + + "go.wit.com/log" +) // import "github.com/davecgh/go-spew/spew" @@ -81,7 +84,7 @@ func Chomp(a interface{}) string { default: tmp := fmt.Sprint("shell.Chomp() NO HANDLER FOR TYPE: %T", a) handleError(fmt.Errorf(tmp), -1) - log.Printf("shell.Chomp() NEED TO MAKE CONVERTER FOR type =", reflect.TypeOf(t)) + log.Warn("shell.Chomp() NEED TO MAKE CONVERTER FOR type =", reflect.TypeOf(t)) } tmp := "shell.Chomp() THIS SHOULD NEVER HAPPEN" handleError(fmt.Errorf(tmp), -1) -- cgit v1.2.3