Browse Source

adjust logging

pull/2/head
Chris Lu 11 years ago
parent
commit
0702eee3b1
  1. 4
      go/metastore/etcd_backing.go

4
go/metastore/etcd_backing.go

@ -21,14 +21,14 @@ func NewMetaStoreEtcdBacking(etcdCluster string) *MetaStoreEtcdBacking {
func (m MetaStoreEtcdBacking) Set(path, val string) error {
res, e := m.client.Set(path, val, 0)
glog.V(0).Infof("etcd set response: %+v\n", res)
glog.V(2).Infof("etcd set response: %+v\n", res)
return e
}
func (m MetaStoreEtcdBacking) Get(path string) (string, error) {
results, err := m.client.Get(path)
for i, res := range results {
glog.V(0).Infof("[%d] get response: %+v\n", i, res)
glog.V(2).Infof("[%d] get response: %+v\n", i, res)
}
if err != nil {
return "", err

Loading…
Cancel
Save