aboutsummaryrefslogtreecommitdiff
path: root/go/util/post.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2013-08-08 23:57:22 -0700
committerChris Lu <chris.lu@gmail.com>2013-08-08 23:57:22 -0700
commited154053c833f9bcce9094e535e2adc0a0397e46 (patch)
tree40dc16b76a12929bc8ac7af0549ccf65316e9011 /go/util/post.go
parentb27947b3550dfdf091010bd2607b8c36a5dca049 (diff)
downloadseaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.tar.xz
seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.zip
switching to temporarily use glog library
Diffstat (limited to 'go/util/post.go')
-rw-r--r--go/util/post.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/go/util/post.go b/go/util/post.go
index 6e6ab0003..af5948f77 100644
--- a/go/util/post.go
+++ b/go/util/post.go
@@ -2,7 +2,7 @@ package util
import (
"io/ioutil"
- "log"
+ "code.google.com/p/weed-fs/go/glog"
"net/http"
"net/url"
)
@@ -10,13 +10,13 @@ import (
func Post(url string, values url.Values) ([]byte, error) {
r, err := http.PostForm(url, values)
if err != nil {
- log.Println("post to", url, err)
+ glog.V(0).Infoln("post to", url, err)
return nil, err
}
defer r.Body.Close()
b, err := ioutil.ReadAll(r.Body)
if err != nil {
- log.Println("read post result from", url, err)
+ glog.V(0).Infoln("read post result from", url, err)
return nil, err
}
return b, nil