From 48dfdf322b2cf379d8deeff678747907b604637f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 20 Dec 2023 17:28:00 -0600 Subject: remove direct code since it probably doesn't work Signed-off-by: Jeff Carr --- log/log.go | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'log/log.go') diff --git a/log/log.go b/log/log.go index 23a6db8..e728fa2 100644 --- a/log/log.go +++ b/log/log.go @@ -15,7 +15,6 @@ package witlog // log("something", foo, bar) // var DEBUG bool = true // log(DEBUG, "something else", someOtherVariable) # if DEBUG == false, return doing nothing -// log(SPEW, "something else", someOtherVariable) # this get's sent to spew.Dump(). Very useful for debugging! // import ( @@ -27,7 +26,6 @@ import ( "fmt" "time" "reflect" - "github.com/davecgh/go-spew/spew" // "net" ) @@ -50,7 +48,6 @@ type Spewt struct { a bool } -var SPEW Spewt /* sleep() # you know what this does? sleeps for 1 second. yep. dump. easy. @@ -118,17 +115,6 @@ func Log(a ...any) { a[0] = Where } - if (reflect.TypeOf(a[0]) == reflect.TypeOf(SPEW)) { - // a = a[1:] - a[0] = Where - if (debugToolkit) { - scs := spew.ConfigState{MaxDepth: 1} - scs.Dump(a) - // spew.Dump(a) - } - return - } - golog.Println(a...) if (externalLog == nil) { // golog.Println(a...) -- cgit v1.2.3