summaryrefslogtreecommitdiffstats
path: root/log.go
blob: 3971126de029f254a9763fcee6477e7e4c92b98b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package exchange

import (
	"log"
	"os"
)

var (
	lg    = log.New(os.Stderr, "git.samanthony.xyz/exchange ", log.LstdFlags)
	debug bool
)

func debugf(format string, a ...any) {
	if debug {
		lg.Printf(format, a...)
	}
}