mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust logging
This commit is contained in:
parent
1888d01fa0
commit
0702eee3b1
|
@ -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…
Reference in a new issue