diff options
Diffstat (limited to 'log.go')
| -rw-r--r-- | log.go | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -4,10 +4,6 @@ package log -import ( - origlog "log" -) - /* a simple way turn logging messages on and off. The gui config @@ -29,16 +25,16 @@ 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...) - origlog.Println(a...) + realPrintln(a...) return } if ! f.Get() { return } a = append([]any{f.short}, a...) - origlog.Println(a...) + realPrintln(a...) } func Logf(f *LogFlag, s string, a ...any) { if ! f.Get() { return } s = f.short + " " + s - origlog.Printf(s, a...) + realPrintf(s, a...) } |
