summaryrefslogtreecommitdiff
path: root/log.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-05 06:28:51 -0600
committerJeff Carr <[email protected]>2025-02-05 06:28:51 -0600
commitf793a05288247ac6af1d44fbc3d843b408d51596 (patch)
tree51972db1c0d1794f15eaa885d45aa3bc52e80769 /log.go
parent1631c72f706e7ffcb14f9682a2f8c0a87c22fcac (diff)
switch to Disabled()
Diffstat (limited to 'log.go')
-rw-r--r--log.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/log.go b/log.go
index deb15a0..fe94cf2 100644
--- a/log.go
+++ b/log.go
@@ -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