From ff0560ee031fc99a97c4a3825afc137dc733f852 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 12 Mar 2014 14:07:30 -0700 Subject: [PATCH] adjust error message --- go/util/http_util.go | 4 ++-- 1 file 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()