Browse Source

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
```
Kelsey Hightower 11 years ago
parent
commit
3ec4da6ac6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      etcdmain/etcd.go

+ 1 - 0
etcdmain/etcd.go

@@ -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)