From 2c7b9074965f8bc31605d2f4d2141e15359f1665 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 13 Dec 2024 12:36:13 -0600 Subject: go.wit.com/log is now primitive --- api.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'api.go') diff --git a/api.go b/api.go index 464dbbd..7811ff2 100644 --- a/api.go +++ b/api.go @@ -90,10 +90,10 @@ func SetRow(dnsRow *RRT) { // show the JSON tmp := makeJSON(dnsRow) - log.Spew(tmp) + log.Info(tmp) if CFdialog.curlNode != nil { pretty, _ := FormatJSON(tmp) - log.Spew("http PUT curl =", pretty) + log.Info("http PUT curl =", pretty) CFdialog.curlNode.SetText(pretty) } } @@ -116,7 +116,7 @@ func GetZonefile(c *ConfigT) *DNSRecords { client := &http.Client{} resp, err := client.Do(req) - // log.Spew("SPEWING", resp) + // log.Info("SPEWING", resp) if err != nil { log.Error(err, "http.Client error") return nil @@ -128,7 +128,7 @@ func GetZonefile(c *ConfigT) *DNSRecords { log.Error(err, "ioutil.ReadAll() error") return nil } - log.Spew("SPEWING", body) + log.Info("SPEWING", body) pretty, err := FormatJSON(string(body)) if err != nil { log.Error(err, "FormatJSON error") @@ -219,7 +219,7 @@ func GetZones(auth, email string) *DNSRecords { */ for _, record := range records.Result { - log.Spew("spew record:", record) + log.Info("spew record:", record) log.Info("record:", record.Name, record.ID) var newc *ConfigT -- cgit v1.2.3