summaryrefslogtreecommitdiff
path: root/error.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-07 01:23:43 -0600
committerJeff Carr <[email protected]>2024-11-07 01:23:43 -0600
commitef61eb494b42a7bc226de1edc114579ce530abdd (patch)
tree0bd23b52a8aae23806d8cdc9896936c39cd07728 /error.go
parent2b11a4e334f465aef868d6c1bf3f1a7c9dfd5c27 (diff)
try allowing switching to writing to httpv0.22.2
Diffstat (limited to 'error.go')
-rw-r--r--error.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/error.go b/error.go
index 2235ad5..983b522 100644
--- a/error.go
+++ b/error.go
@@ -5,7 +5,9 @@
package log
func Error(err error, a ...any) {
- if ! ERROR.Get() { return }
+ if !ERROR.Get() {
+ return
+ }
realPrintln("Error:", err)
realPrintln(a...)
}