diff options
Diffstat (limited to 'go/storage')
| -rw-r--r-- | go/storage/store.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/go/storage/store.go b/go/storage/store.go index 8228c12a2..1d269428a 100644 --- a/go/storage/store.go +++ b/go/storage/store.go @@ -53,6 +53,7 @@ func (mn *MasterNodes) findMaster() (string, error) { } if mn.lastNode < 0 { for _, m := range mn.nodes { + glog.V(4).Infof("Listing masters on %s", m) if masters, e := operation.ListMasters(m); e == nil { if len(masters) == 0 { continue @@ -61,6 +62,8 @@ func (mn *MasterNodes) findMaster() (string, error) { mn.lastNode = rand.Intn(len(mn.nodes)) glog.V(2).Info("current master node is :", mn.nodes[mn.lastNode]) break + } else { + glog.V(4).Infof("Failed listing masters on %s: %v", m, e) } } } @@ -308,6 +311,7 @@ func (s *Store) SendHeartbeatToMaster() (masterNode string, secretKey security.S } joinUrl := "http://" + masterNode + "/dir/join" + glog.V(4).Infof("Connecting to %s ...", joinUrl) jsonBlob, err := util.PostBytes(joinUrl, data) if err != nil { |
