summaryrefslogtreecommitdiff
path: root/info.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 /info.go
parent1631c72f706e7ffcb14f9682a2f8c0a87c22fcac (diff)
switch to Disabled()
Diffstat (limited to 'info.go')
-rw-r--r--info.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/info.go b/info.go
index 0219fdc..dd85ab8 100644
--- a/info.go
+++ b/info.go
@@ -5,20 +5,14 @@
package log
func Info(a ...any) {
- if !INFO.Ok() {
- return
- }
- if !INFO.b {
+ if INFO.Disabled() {
return
}
realPrintln(a...)
}
func Infof(s string, a ...any) {
- if !INFO.Ok() {
- return
- }
- if !INFO.b {
+ if INFO.Disabled() {
return
}
realPrintf(s, a...)