diff options
| author | Chris Lu <chris.lu@gmail.com> | 2013-08-08 23:57:22 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2013-08-08 23:57:22 -0700 |
| commit | ed154053c833f9bcce9094e535e2adc0a0397e46 (patch) | |
| tree | 40dc16b76a12929bc8ac7af0549ccf65316e9011 /go/replication/store_replicate.go | |
| parent | b27947b3550dfdf091010bd2607b8c36a5dca049 (diff) | |
| download | seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.tar.xz seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.zip | |
switching to temporarily use glog library
Diffstat (limited to 'go/replication/store_replicate.go')
| -rw-r--r-- | go/replication/store_replicate.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/go/replication/store_replicate.go b/go/replication/store_replicate.go index bdc13ee3b..de2f3fcd8 100644 --- a/go/replication/store_replicate.go +++ b/go/replication/store_replicate.go @@ -4,7 +4,7 @@ import ( "bytes" "code.google.com/p/weed-fs/go/operation" "code.google.com/p/weed-fs/go/storage" - "log" + "code.google.com/p/weed-fs/go/glog" "net/http" "strconv" ) @@ -50,7 +50,7 @@ func ReplicatedWrite(masterNode string, s *storage.Store, volumeId storage.Volum func ReplicatedDelete(masterNode string, store *storage.Store, volumeId storage.VolumeId, n *storage.Needle, r *http.Request) (ret uint32) { ret, err := store.Delete(volumeId, n) if err != nil { - log.Println("delete error:", err) + glog.V(0).Infoln("delete error:", err) return } @@ -89,7 +89,7 @@ func distributedOperation(masterNode string, store *storage.Store, volumeId stor } return ret } else { - log.Println("Failed to lookup for", volumeId, lookupErr.Error()) + glog.V(0).Infoln("Failed to lookup for", volumeId, lookupErr.Error()) } return false } |
