tracking down all erroneous log messages

This commit is contained in:
Your Name 2024-01-01 12:00:00 -06:00
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:`
1 changed files with 1 additions and 1 deletions

2
log.go
View File

@ -24,7 +24,7 @@ In your package, register NETWARN:
func Log(f *LogFlag, a ...any) { func Log(f *LogFlag, a ...any) {
if !f.Ok() { if !f.Ok() {
// if the flag is NULL, notify the user they didn't initialize the flag // 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...) realPrintln(a...)
return return
} }