From 34e39edcdab76abc203126407712cfd868601c57 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Fri, 28 Dec 2018 11:47:54 -0500 Subject: [PATCH] version.go: remove ORIGIN and reduce frequency of logs --- api/version.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/version.go b/api/version.go index 216c63b..44324de 100644 --- a/api/version.go +++ b/api/version.go @@ -14,13 +14,12 @@ func versionCheckStart() error { go func() { printedError := false errorCount := 0 + latestSeen := "" for { time.Sleep(5 * time.Minute) data := url.Values{ - "origin": {os.Getenv("ORIGIN")}, - "edition": {edition}, "version": {version}, } @@ -65,8 +64,9 @@ func versionCheckStart() error { continue } - if r.NewUpdate { + if r.NewUpdate && r.Latest != latestSeen { logger.Infof("New update available! Latest version: %s", r.Latest) + latestSeen = r.Latest } errorCount = 0