diff options
| author | Jeff Carr <[email protected]> | 2023-02-25 14:05:25 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-02-25 14:05:25 -0600 |
| commit | f3bb68396afa7452ecf1c8d4744c825a9d81057c (patch) | |
| tree | 00b55a17cee7a8e2f795c479a84a844779993c1c /watchdog.go | |
| parent | 355e5ec968427c2b07b78fec12224f31a65df740 (diff) | |
The debugging window is finally useful
the gui enabled debugging works
--gui-debug works from the command line
The debug window can now select things
debugging now includes widget types
all the debug flags work
finally working debugging flags via gui checkboxes
add debian packaging rules
use log() in the toolkit
use a standard log() to simplify debugging flags
add reference to 'GO Style Guide'
use the same LICENSE from the GO developers.
TODO: make this threadsafe
TODO: fix plugin stuff
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'watchdog.go')
| -rw-r--r-- | watchdog.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/watchdog.go b/watchdog.go index 29ac21a..73248dd 100644 --- a/watchdog.go +++ b/watchdog.go @@ -1,7 +1,6 @@ package gui import ( - "log" "time" ) @@ -16,7 +15,7 @@ var watchtime time.Duration = 100 // in tenths of seconds func Watchdog() { var i = 1 for { - log.Println("watchdog timer is alive. give me something to do.", i, "debug =", Config.Debug.Debug) + log(debugGui, "watchdog timer is alive. give me something to do.", i) i += 1 time.Sleep(watchtime * time.Second / 10) } |
