summaryrefslogtreecommitdiff
path: root/api.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-13 12:36:13 -0600
committerJeff Carr <[email protected]>2024-12-13 12:36:13 -0600
commit2c7b9074965f8bc31605d2f4d2141e15359f1665 (patch)
tree3f19e7abe195ab72e7985d2bea13554ab09dabe7 /api.go
parentdf007743b01c448a961c4d682ed510e009e22d71 (diff)
Diffstat (limited to 'api.go')
-rw-r--r--api.go10
1 files changed, 5 insertions, 5 deletions
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