summaryrefslogtreecommitdiff
path: root/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'log.go')
-rw-r--r--log.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/log.go b/log.go
index e808944..754a883 100644
--- a/log.go
+++ b/log.go
@@ -122,7 +122,8 @@ func loggo() {
golog.Println("runtime.NumGoroutine() = ", runtime.NumGoroutine())
}
-func logindent(depth int, format string, a ...any) {
+// b bool, print if true
+func logindent(b bool, depth int, format string, a ...any) {
var tabs string
for i := 0; i < depth; i++ {
tabs = tabs + format
@@ -133,6 +134,6 @@ func logindent(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{debugGui, newFormat}, a...)
+ a = append([]any{b, newFormat}, a...)
log(a...)
}