summaryrefslogtreecommitdiff
path: root/spew.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-09 15:50:53 -0600
committerJeff Carr <[email protected]>2024-01-09 15:50:53 -0600
commit4f8752d9f4e210c48006217f059658049f6d682e (patch)
tree77887c4e84bfb247e9c0c4105f4cc5d138255ce6 /spew.go
parent6749a1d173e838b67967322ffdf1afb49be49fbc (diff)
go.wit.com/log flag changes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'spew.go')
-rw-r--r--spew.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/spew.go b/spew.go
index 2ea40f0..7f433a7 100644
--- a/spew.go
+++ b/spew.go
@@ -6,7 +6,8 @@ import (
)
func Spew(b any, a ...any) {
- if ! SPEW.B { return }
+ if ! SPEW.Ok() { return }
+ if ! SPEW.b { return }
switch b.(type) {
case bool:
@@ -17,7 +18,7 @@ func Spew(b any, a ...any) {
case LogFlag:
var f LogFlag
f = b.(LogFlag)
- if ! f.B {
+ if ! f.b {
return
}
origlog.Println("SPEW:", spew.Sdump(a...))