summaryrefslogtreecommitdiff
path: root/warn.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 /warn.go
parent6749a1d173e838b67967322ffdf1afb49be49fbc (diff)
go.wit.com/log flag changes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'warn.go')
-rw-r--r--warn.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/warn.go b/warn.go
index 0ad3118..e8518bd 100644
--- a/warn.go
+++ b/warn.go
@@ -5,6 +5,7 @@ import (
)
func Warn(a ...any) {
- if ! WARN.B { return }
+ if ! WARN.Ok() { return }
+ if ! WARN.b { return }
origlog.Println(a...)
}