summaryrefslogtreecommitdiff
path: root/log.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-12 16:21:47 -0500
committerJeff Carr <[email protected]>2024-10-12 16:21:47 -0500
commit2cf02ee2e5f155205b847805b1bdccb42fcfec00 (patch)
tree56317c3f2d3c8b5f2a69a442e74d7456a2df40b0 /log.go
parent54c0947452516833f907fb78fce0532d39c84287 (diff)
half working 'daemon mode'
Signed-off-by: Jeff Carr <[email protected]>
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...)
}