From fc6c72740b33015b3cfd52429d0eed3b3b09c494 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 5 Jan 2024 01:07:34 -0600 Subject: [PATCH] ready to debug 'gui/cloudflare' Signed-off-by: Jeff Carr --- gui.go | 4 ++-- hostnameStatus.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui.go b/gui.go index 8273a76..4f2ed71 100644 --- a/gui.go +++ b/gui.go @@ -25,7 +25,7 @@ func setupControlPanelWindow() { // setup the main tab mainWindow("DNS and IPv6 Control Panel") - detailsTab("DNS Details") + detailsTab("OS Details") debugTab("Debug") // me.digStatus = NewDigStatusWindow(me.window) @@ -218,7 +218,7 @@ func mainWindow(title string) { gr.NewButton("GO GUI Debugger", func () { debugger.DebugWindow(me.myGui) }) - gr.NewButton("DNS Details", func () { + gr.NewButton("OS Details", func () { me.details.Toggle() }) gr.NewButton("DNS Debug", func () { diff --git a/hostnameStatus.go b/hostnameStatus.go index 434411e..fa0f730 100644 --- a/hostnameStatus.go +++ b/hostnameStatus.go @@ -98,7 +98,7 @@ func NewHostnameStatusWindow(p *gui.Node) *hostnameStatus { hs.dnsValue = grid.NewLabel("3.4.5.6") hs.dnsAction = grid.NewButton("CHECK", func () { - log.Info("should", hs.dnsAction.S, "here for", hs.dnsValue.S) + log.Warn("should", hs.dnsAction.S, "here for", hs.dnsValue.S) if (hs.dnsAction.S == "DELETE") { hs.deleteDNSrecord(hs.dnsValue.S) } @@ -145,7 +145,7 @@ func (hs *hostnameStatus) createDNSrecord(value string) bool { log.Info("createDNSrecord() DNS API Provider =", hs.API()) if (hs.API() == "cloudflare") { - log.Info("createDNSrecord() Try to delete via cloudflare") + log.Warn("createDNSrecord() Try to delete via cloudflare:", me.hostname, value) return cloudflare.Create(hs.Domain(), me.hostname, value) } return false