diff options
| author | Jeff Carr <[email protected]> | 2024-12-13 12:36:13 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-13 12:36:13 -0600 | 
| commit | 2c7b9074965f8bc31605d2f4d2141e15359f1665 (patch) | |
| tree | 3f19e7abe195ab72e7985d2bea13554ab09dabe7 | |
| parent | df007743b01c448a961c4d682ed510e009e22d71 (diff) | |
go.wit.com/log is now primitiveHEADv0.22.9v0.22.8v0.22.7v0.22.6v0.22.47v0.22.46v0.22.45v0.22.44v0.22.43v0.22.42v0.22.41v0.22.40v0.22.39v0.22.38v0.22.37v0.22.36v0.22.35v0.22.34v0.22.33v0.22.32v0.22.31v0.22.30v0.22.29v0.22.28v0.22.27v0.22.26v0.22.25v0.22.24v0.22.23v0.22.22v0.22.21v0.22.20v0.22.19v0.22.18v0.22.17v0.22.16v0.22.15v0.22.14v0.22.13v0.22.12v0.22.11v0.22.10masterguimasterdevel
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | api.go | 10 | ||||
| -rw-r--r-- | create.go | 2 | ||||
| -rw-r--r-- | http.go | 2 | ||||
| -rw-r--r-- | rr.go | 4 | 
5 files changed, 13 insertions, 11 deletions
@@ -1,6 +1,10 @@ -all: +all: vet  	@echo this is a gui for the cloudflare package +vet: +	@GO111MODULE=off go vet +	@echo go vet: this go library package builds okay +  goimports:  	goimports -w *.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 @@ -52,6 +52,6 @@ func Create(zone string, hostname string, value string) bool {  	result := doCurlCreate(key, email, z.ZoneID, data)  	pretty, _ := FormatJSON(result) -	log.Spew("cloudflare.Create() result =", pretty) +	log.Info("cloudflare.Create() result =", pretty)  	return true  } @@ -181,8 +181,6 @@ func curlPost(dnsRow *RRT) string {  		log.Error(err)  		return ""  	} -	log.Spew("http PUT body =", body) -  	pretty, _ := FormatJSON(string(body))  	log.Log(CURL, "result =", pretty)  	log.Log(CURL, "curl() END") @@ -130,7 +130,7 @@ func CreateRR(myGui *gui.Node, zone string, zoneID string) *gadgets.BasicWindow  		CFdialog.resultNode.SetText(result)  		pretty, _ := FormatJSON(result) -		log.Spew(pretty) +		log.Info(pretty)  	})  	group.NewButton("Update RR doCurl(PUT)", func() { @@ -142,7 +142,7 @@ func CreateRR(myGui *gui.Node, zone string, zoneID string) *gadgets.BasicWindow  		CFdialog.resultNode.SetText(result)  		pretty, _ := FormatJSON(result) -		log.Spew(pretty) +		log.Info(pretty)  	})  	// CFdialog.saveNode.Disable()  | 
