From 6b77c146ec13b0b235ab84082c0a86c35d9eea96 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Thu, 20 Aug 2015 14:48:53 -0700 Subject: [PATCH] etcdmain: print out version information on startup --- etcdmain/etcd.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etcdmain/etcd.go b/etcdmain/etcd.go index 4ff494a78..f05c0e7fb 100644 --- a/etcdmain/etcd.go +++ b/etcdmain/etcd.go @@ -45,6 +45,7 @@ import ( "github.com/coreos/etcd/pkg/types" "github.com/coreos/etcd/proxy" "github.com/coreos/etcd/rafthttp" + "github.com/coreos/etcd/version" ) type dirType string @@ -89,6 +90,11 @@ func Main() { var stopped <-chan struct{} + plog.Infof("etcd Version: %s\n", version.Version) + plog.Infof("Git SHA: %s\n", version.GitSHA) + plog.Infof("Go Version: %s\n", runtime.Version()) + plog.Infof("Go OS/Arch: %s/%s\n", runtime.GOOS, runtime.GOARCH) + GoMaxProcs := 1 if envMaxProcs, err := strconv.Atoi(os.Getenv("GOMAXPROCS")); err == nil { GoMaxProcs = envMaxProcs