tracking down all erroneous log messages
This commit is contained in:
parent
c1c1b8a75e
commit
466a3c6076
Notes:
Jeff Carr
2025-02-14 00:20:37 -06:00
// `autogen:go.mod` module go.wit.com/log go 1.22 toolchain go1.23.6 // `autogen:`
2
log.go
2
log.go
|
@ -24,7 +24,7 @@ In your package, register NETWARN:
|
|||
func Log(f *LogFlag, a ...any) {
|
||||
if !f.Ok() {
|
||||
// if the flag is NULL, notify the user they didn't initialize the flag
|
||||
a = append([]any{"FLAG = NULL"}, a...)
|
||||
a = append([]any{"FLAG = NULL. Normal error output. please ignore for now"}, a...)
|
||||
realPrintln(a...)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue