diff options
| author | Chris Lu <chris.lu@gmail.com> | 2014-03-12 14:07:30 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2014-03-12 14:07:30 -0700 |
| commit | ff0560ee031fc99a97c4a3825afc137dc733f852 (patch) | |
| tree | 28614f88b96e30033ed116a7c8c85387f1e99872 /go | |
| parent | c3ce024fc1a1e7841ac57e77313d967df45a5ee1 (diff) | |
| download | seaweedfs-ff0560ee031fc99a97c4a3825afc137dc733f852.tar.xz seaweedfs-ff0560ee031fc99a97c4a3825afc137dc733f852.zip | |
adjust error message
Diffstat (limited to 'go')
| -rw-r--r-- | go/util/http_util.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/util/http_util.go b/go/util/http_util.go index dd6b9a67d..e28057572 100644 --- a/go/util/http_util.go +++ b/go/util/http_util.go @@ -23,7 +23,7 @@ func init() { func Post(url string, values url.Values) ([]byte, error) { r, err := client.PostForm(url, values) if err != nil { - glog.V(0).Infoln("post to", url, err) + glog.V(0).Infoln(err) return nil, err } defer r.Body.Close() @@ -38,7 +38,7 @@ func Post(url string, values url.Values) ([]byte, error) { func Get(url string) ([]byte, error) { r, err := client.Get(url) if err != nil { - glog.V(0).Infoln("getting ", url, err) + glog.V(0).Infoln(err) return nil, err } defer r.Body.Close() |
