From 89c14962b8ce71c2cf8a7e565eec4e20e04e8091 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 7 Feb 2024 08:58:51 -0600 Subject: [PATCH] use standard log things Signed-off-by: Jeff Carr --- args.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/args.go b/args.go index 10565cf..0f45f70 100644 --- a/args.go +++ b/args.go @@ -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") } }