diff options
Diffstat (limited to 'log.go')
| -rw-r--r-- | log.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -22,19 +22,23 @@ In your package, register NETWARN: */ 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 a = append([]any{"FLAG = NULL"}, a...) realPrintln(a...) return } - if ! f.Get() { return } + if !f.Get() { + return + } a = append([]any{f.short}, a...) realPrintln(a...) } func Logf(f *LogFlag, s string, a ...any) { - if ! f.Get() { return } + if !f.Get() { + return + } s = f.short + " " + s realPrintf(s, a...) } |
