summaryrefslogtreecommitdiff
path: root/error.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-04 12:34:04 -0600
committerJeff Carr <[email protected]>2024-01-04 12:34:04 -0600
commit9b46482ad0da5e4b965debdb815ebcd89a666d89 (patch)
treefce0b8ae561d6f44ff0cd54cdc6bd51ec0f1b3ee /error.go
parent6b25784508180c69076f53b7a4e78f85b367c902 (diff)
make a log config window
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'error.go')
-rw-r--r--error.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/error.go b/error.go
index b01068e..6db5849 100644
--- a/error.go
+++ b/error.go
@@ -5,6 +5,7 @@ import (
)
func Error(err error, a ...any) {
+ if ! ERROR.B { return }
origlog.Println("Error:", err)
origlog.Println(a...)
}