diff --git a/GNUmakefile b/GNUmakefile index 51b5992d7..36bc65d6d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -5,7 +5,7 @@ THIS_OS := $(shell uname) GIT_COMMIT := $(shell git rev-parse HEAD) GIT_DIRTY := $(if $(shell git status --porcelain),+CHANGES) -GO_LDFLAGS := "-X main.GitCommit=$(GIT_COMMIT)$(GIT_DIRTY)" +GO_LDFLAGS := "-X github.com/hashicorp/nomad/version.GitCommit=$(GIT_COMMIT)$(GIT_DIRTY)" GO_TAGS = default: help diff --git a/client/gc.go b/client/gc.go index cdbf876e7..a350b7e9c 100644 --- a/client/gc.go +++ b/client/gc.go @@ -87,7 +87,6 @@ func NewAllocGarbageCollector(logger *log.Logger, statsCollector stats.NodeStats // Run the periodic garbage collector. func (a *AllocGarbageCollector) Run() { ticker := time.NewTicker(a.config.Interval) - a.logger.Printf("[DEBUG] client.gc: GC'ing ever %v", a.config.Interval) for { select { case <-a.triggerCh: diff --git a/version/version.go b/version/version.go index 6085bee0d..34cfe0fd2 100644 --- a/version/version.go +++ b/version/version.go @@ -6,7 +6,6 @@ import ( ) var ( - // The git commit that was compiled. This will be filled in by the compiler. GitCommit string GitDescribe string