summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-09 09:31:26 -0600
committerJeff Carr <[email protected]>2024-02-09 09:31:26 -0600
commit40856345785aff5d95b05ab2d70955529916aff2 (patch)
tree818c44fcb79834002834b322a0c8cc8db5046236
parent25033569e7d8daca9627651030c122d1f033b17e (diff)
try to load nocui when panic() in gocui
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--Makefile6
-rw-r--r--main.go3
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 63d19dc..0d2411f 100644
--- a/Makefile
+++ b/Makefile
@@ -22,11 +22,13 @@ stderr: build
log:
reset
- tail -f /tmp/witgui.* /tmp/guilogfile
+ tail -f /tmp/guilogfile /tmp/witgui.* /tmp/gadget*
gocui: build
reset
- ./control-panel-dns --gui gocui --tmp-log
+ # ./control-panel-dns --gui gocui --tmp-log >/tmp/witgui.log.stderr 2>&1
+ # ./control-panel-dns --gui gocui
+ ./control-panel-dns --gui gocui >/tmp/witgui.log.stderr 2>&1
check-git-clean:
@git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
diff --git a/main.go b/main.go
index 7b2ec0f..1c2d8da 100644
--- a/main.go
+++ b/main.go
@@ -122,6 +122,9 @@ func main() {
me.statusOS.SetSpeedActual(s)
})
+ // show internal gui toolkit stats
+ go gui.Watchdog()
+
// check the four known things to see if they are all WORKING
myTicker(10*time.Second, "MAIN LOOP", func() {
var working bool = true