aboutsummaryrefslogtreecommitdiffstats
path: root/debug.go
blob: 18f4423a251756b51c9c94ba75c915b5760bf688 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package lulu

import (
	"log"
	"os"
)

var (
	Debug    = false // print debug info to stdout
	debugLog = log.New(os.Stderr, "DEBUG ", log.LstdFlags|log.Llongfile)
)

func debugf(format string, a ...any) {
	if Debug {
		debugLog.Printf(format, a...)
	}
}