From 8f34aa62f2b81d0dc90c93bf248808e799a0b652 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 5 Jan 2024 19:33:41 -0600 Subject: send everything through go.wit.com/log Signed-off-by: Jeff Carr --- rr.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'rr.go') diff --git a/rr.go b/rr.go index eae552a..6ee11f2 100644 --- a/rr.go +++ b/rr.go @@ -7,9 +7,9 @@ package cloudflare import ( - "log" "os" + "go.wit.com/log" "go.wit.com/gui/gui" "go.wit.com/gui/gadgets" ) @@ -21,7 +21,7 @@ func init() { func CreateRR(myGui *gui.Node, zone string, zoneID string) { if (CFdialog.cloudflareW != nil) { // skip this if the window has already been created - log.Println("createRR() the cloudflare window already exists") + log.Warn("createRR() the cloudflare window already exists") CFdialog.cloudflareB.Disable() return } @@ -130,7 +130,7 @@ func CreateRR(myGui *gui.Node, zone string, zoneID string) { CFdialog.resultNode.SetText(result) pretty, _ := FormatJSON(result) - log.Println(pretty) + log.Spew(pretty) }) group.NewButton("Update RR doCurl(PUT)", func () { @@ -142,11 +142,10 @@ func CreateRR(myGui *gui.Node, zone string, zoneID string) { CFdialog.resultNode.SetText(result) pretty, _ := FormatJSON(result) - log.Println(pretty) + log.Spew(pretty) }) // CFdialog.saveNode.Disable() - group.Pad() grid.Pad() grid.Expand() -- cgit v1.2.3