diff options
| author | Jeff Carr <[email protected]> | 2024-10-12 16:21:47 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-12 16:21:47 -0500 |
| commit | 2cf02ee2e5f155205b847805b1bdccb42fcfec00 (patch) | |
| tree | 56317c3f2d3c8b5f2a69a442e74d7456a2df40b0 /log.go | |
| parent | 54c0947452516833f907fb78fce0532d39c84287 (diff) | |
half working 'daemon mode'
Signed-off-by: Jeff Carr <[email protected]>
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...) } |
