summaryrefslogtreecommitdiff
path: root/chomp.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-10 18:39:58 -0600
committerJeff Carr <[email protected]>2024-01-10 18:39:58 -0600
commite24c2c2eb3feb5083a74a9b2cb396bcbcb0ac52d (patch)
tree65c131d3f739368c75dad2dffc477c1e8c9cb545 /chomp.go
parent096a4b17d1579a2e5997abcdd8b29eb85aff0fae (diff)
go.wit.com/log changev0.2.3
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'chomp.go')
-rw-r--r--chomp.go15
1 files changed, 9 insertions, 6 deletions
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)