summaryrefslogtreecommitdiff
path: root/error.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 /error.go
parent1631c72f706e7ffcb14f9682a2f8c0a87c22fcac (diff)
switch to Disabled()
Diffstat (limited to 'error.go')
-rw-r--r--error.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.go b/error.go
index 983b522..c1544d3 100644
--- a/error.go
+++ b/error.go
@@ -5,7 +5,7 @@
package log
func Error(err error, a ...any) {
- if !ERROR.Get() {
+ if ERROR.Disabled() {
return
}
realPrintln("Error:", err)