etcd: print initial cluster members during startup

etcd now prints the initial clusters members during startup.

```
2014/11/03 10:32:46 etcd: initial cluster members: etcd0=http://127.0.0.1:2380,etcd1=http://127.0.0.1:2390,etcd2=http://127.0.0.1:2400
```
This commit is contained in:
Kelsey Hightower 2014-11-03 08:14:38 -08:00
parent 75104c10d4
commit 3ec4da6ac6

View File

@ -151,6 +151,7 @@ func startEtcd() {
if err != nil {
log.Fatalf("etcd: error setting up initial cluster: %v", err)
}
log.Printf("etcd: initial cluster members: %s", cls.String())
if *dir == "" {
*dir = fmt.Sprintf("%v.etcd", *name)