From 40856345785aff5d95b05ab2d70955529916aff2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 9 Feb 2024 09:31:26 -0600 Subject: try to load nocui when panic() in gocui Signed-off-by: Jeff Carr --- Makefile | 6 ++++-- main.go | 3 +++ 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 -- cgit v1.2.3