diff options
| author | Jeff Carr <[email protected]> | 2023-04-07 09:18:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-07 09:18:03 -0500 |
| commit | 820067cbff754cf9a5f96c425d8f31b5949d353c (patch) | |
| tree | 70d0e9d9be1ca988078a0bffedc66b824d928cc3 /watchdog.go | |
| parent | ba35c2760687384055d2b7ae733e0f9ac814af4c (diff) | |
open gocui when DISPLAY=""
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'watchdog.go')
| -rw-r--r-- | watchdog.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/watchdog.go b/watchdog.go index 0f649cb..a9e0880 100644 --- a/watchdog.go +++ b/watchdog.go @@ -15,7 +15,14 @@ var watchtime time.Duration = 100 // in tenths of seconds func Watchdog() { var i = 1 for { - log(logInfo, "watchdog timer is alive. give me something to do.", i) + log(logNow, "watchdog timer is alive. give me something to do.", i) + if (Config.rootNode == nil) { + log(logInfo, "Config.rootNode == nil", i) + } else { + if (logVerbose) { + Config.rootNode.ListChildren(true) + } + } i += 1 time.Sleep(watchtime * time.Second / 10) } |
