log the volume server connected to which master server

This commit is contained in:
Chris Lu
2014-04-20 23:28:05 -07:00
parent 5f2604b1f7
commit 637469e656
2 changed files with 10 additions and 11 deletions

View File

@@ -50,11 +50,11 @@ func NewVolumeServer(r *http.ServeMux, ip string, port int, publicUrl string, fo
vs.store.SetDataCenter(vs.dataCenter)
vs.store.SetRack(vs.rack)
for {
err := vs.store.Join()
master, err := vs.store.Join()
if err == nil {
if !connected {
connected = true
glog.V(0).Infoln("Volume Server Connected with master")
glog.V(0).Infoln("Volume Server Connected with master at", master)
}
} else {
glog.V(4).Infoln("Volume Server Failed to talk with master:", err.Error())
@@ -69,7 +69,6 @@ func NewVolumeServer(r *http.ServeMux, ip string, port int, publicUrl string, fo
}
}
}()
glog.V(0).Infoln("store joined at", vs.masterNode)
return vs
}