Skip to content

Commit

Permalink
main: make BuildVersion part of /debug/vars
Browse files Browse the repository at this point in the history
  • Loading branch information
nnuss committed Dec 5, 2016
1 parent fda3c40 commit 60b9fcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ func main() {
}, bucketRequestTimes))))

portStr := fmt.Sprintf(":%d", Config.Port)
expvar.NewString("BuildVersion").Set(BuildVersion)
logger.Logln("Starting carbonsearch", BuildVersion)
logger.Logf("listening on %s\n", portStr)
err := http.ListenAndServe(portStr, gziphandler.GzipHandler(http.DefaultServeMux))
Expand Down

0 comments on commit 60b9fcb

Please sign in to comment.