diff options
| author | Jeff Carr <[email protected]> | 2024-01-10 18:39:58 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-10 18:39:58 -0600 |
| commit | e24c2c2eb3feb5083a74a9b2cb396bcbcb0ac52d (patch) | |
| tree | 65c131d3f739368c75dad2dffc477c1e8c9cb545 /chomp.go | |
| parent | 096a4b17d1579a2e5997abcdd8b29eb85aff0fae (diff) | |
go.wit.com/log changev0.2.3
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'chomp.go')
| -rw-r--r-- | chomp.go | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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) |
