diff options
| author | Jeff Carr <[email protected]> | 2025-02-05 06:28:51 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-05 06:28:51 -0600 |
| commit | f793a05288247ac6af1d44fbc3d843b408d51596 (patch) | |
| tree | 51972db1c0d1794f15eaa885d45aa3bc52e80769 /log.go | |
| parent | 1631c72f706e7ffcb14f9682a2f8c0a87c22fcac (diff) | |
switch to Disabled()
Diffstat (limited to 'log.go')
| -rw-r--r-- | log.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,7 +28,7 @@ func Log(f *LogFlag, a ...any) { realPrintln(a...) return } - if !f.Get() { + if f.Disabled() { return } a = append([]any{f.short}, a...) @@ -36,7 +36,7 @@ func Log(f *LogFlag, a ...any) { } func Logf(f *LogFlag, s string, a ...any) { - if !f.Get() { + if f.Disabled() { return } s = f.short + " " + s |
