summaryrefslogtreecommitdiff
path: root/log/log.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-20 17:28:00 -0600
committerJeff Carr <[email protected]>2023-12-20 17:28:00 -0600
commit48dfdf322b2cf379d8deeff678747907b604637f (patch)
treef813fc169ac1eb050c39533cc9612c74c9caebd7 /log/log.go
parentdd6d1a639b86ab12a2bf537b8588dd5ae60cdad7 (diff)
remove direct code since it probably doesn't work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'log/log.go')
-rw-r--r--log/log.go14
1 files changed, 0 insertions, 14 deletions
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...)