diff options
Diffstat (limited to 'rr.go')
| -rw-r--r-- | rr.go | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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() |
