use standard log things

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-07 08:58:51 -06:00
parent 3f3e8e1b2e
commit 89c14962b8
1 changed files with 2 additions and 8 deletions

10
args.go
View File

@ -19,18 +19,12 @@ var args struct {
TmpLog bool `arg:"--tmp-log" help:"automatically send STDOUT to /tmp"`
}
var NOW *log.LogFlag
func init() {
arg.MustParse(&args)
full := "go.wit.com/control-panels/dns"
short := "cpdns"
NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff")
if debugger.ArgDebug() {
log.Log(NOW, "INIT() gui debug == true")
log.Info("cmd line --debugger == true")
} else {
log.Log(NOW, "INIT() gui debug == false")
log.Info("cmd line --debugger == false")
}
}