summaryrefslogtreecommitdiff
path: root/log.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-01 15:43:50 -0600
committerJeff Carr <[email protected]>2024-01-01 15:43:50 -0600
commit4e7bbd89900a733593f0848778103c1cf1a7145d (patch)
tree22cd22124dd3ecba7c2a866b882d39aaf790d670 /log.go
parent53ce3a8252090d5fb75d7fc1e3cd75a72c1415c6 (diff)
reorg to final resting place at go.wit.com/gui/guiv0.9.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'log.go')
-rw-r--r--log.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/log.go b/log.go
index a7ca2c2..c472317 100644
--- a/log.go
+++ b/log.go
@@ -1,7 +1,7 @@
package gui
import (
- witlog "go.wit.com/gui/log"
+ witlog "go.wit.com/log"
)
// various debugging flags
@@ -13,9 +13,9 @@ var logVerbose bool = false
// var log interface{}
-func log(a ...any) {
- witlog.Where = "wit/gui"
- witlog.Log(a...)
+func log(b bool, a ...any) {
+ // witlog.Where = "wit/gui"
+ witlog.Log(b, a...)
}
func sleep(a ...any) {
@@ -39,5 +39,5 @@ func logindent(b bool, depth int, format string, a ...any) {
// array prepend(). Why isn't this a standard function. It should be:
// a.prepend(debugGui, newFormat)
a = append([]any{b, newFormat}, a...)
- witlog.Log(a...)
+ witlog.Log(b, a...)
}