From fc0cdea357c94b58e8167c7aae105dcc62333004 Mon Sep 17 00:00:00 2001 From: erhant Date: Fri, 29 Nov 2024 16:07:01 +0300 Subject: [PATCH] version log rfk --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 0b9ed9d..f4ded92 100644 --- a/main.go +++ b/main.go @@ -357,7 +357,7 @@ func main() { // new version check loop for { time.Sleep(60 * time.Minute) - logger.Printf("Checking the new version...") + // Check if a new version is available newVersionAvailable, newVersion := utils.IsNewVersionAvaliable(envvars["DKN_COMPUTE_VERSION"]) if newVersionAvailable { @@ -399,8 +399,9 @@ func main() { logger.Printf("All good, now restarting the node with new version...") break } - } else { + } else if *dev { // no new version detected, will check it again after a bit + // only log this for dev (debug) mode logger.Printf("No new compute-node version detected, will check again in an hour.") } }