summaryrefslogtreecommitdiff
path: root/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'log.go')
-rw-r--r--log.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/log.go b/log.go
index 87eb57e..5b436b6 100644
--- a/log.go
+++ b/log.go
@@ -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...)
}