diff options
| author | Jeff Carr <[email protected]> | 2024-02-26 11:08:51 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-26 11:08:51 -0600 |
| commit | a57e9cff060cd4ddb1fccc424c041e7c829e4d07 (patch) | |
| tree | f04bdb8cd608be6caab34af7b71bea07f5faa72f /watchdog.go | |
| parent | 9754e32858688a0add4beddb2837b0ddedc4a6bf (diff) | |
fix the ENV logic
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 edf2358..4dddb98 100644 --- a/watchdog.go +++ b/watchdog.go @@ -28,13 +28,13 @@ func (r *RepoList) Watchdog(f func()) { MyTicker(1*time.Second, "newScan()", func() { i += 1 // check if the env var is set to autoscan - if os.Getenv("REPO_AUTO_SCAN") != "" { + if os.Getenv("REPO_AUTO_SCAN") != "true" { if i < delay { i = delay } // print every 'delay' seconds if i%delay == 0 { - log.Info("Not auto scanning", i) + log.Info("Not auto scanning", i, "REPO_AUTO_SCAN =", os.Getenv("REPO_AUTO_SCAN")) } return } |
