diff options
Diffstat (limited to 'watchdog.go')
| -rw-r--r-- | watchdog.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/watchdog.go b/watchdog.go index 155c79d..41bc698 100644 --- a/watchdog.go +++ b/watchdog.go @@ -12,7 +12,7 @@ import ( func (h *HyperT) NewWatchdog() { var delay int = 99 var i int = delay - h.MyTicker(h.Delay, "new Watchdog() "+h.Hostname, func() { + h.MyTicker(h.Delay, h.Hostname, func() { i += 1 // check if the env var is set to autoscan if os.Getenv("WATCHDOG_AUTO_SCAN") != "true" { @@ -56,7 +56,7 @@ func (h *HyperT) MyTicker(t time.Duration, name string, f func()) { fmt.Println("Done!") return case t := <-h.Dog.C: - log.Info(name, "Current time: ", t) + log.Log(POLL, "Watchdog() ticked", name, "Current time: ", t) h.Scan() // f() } |
