Skip to content

Commit

Permalink
version log rfk
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Nov 29, 2024
1 parent 7904cee commit fc0cdea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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.")
}
}
Expand Down

0 comments on commit fc0cdea

Please sign in to comment.