diff --git a/weed/server/common.go b/weed/server/common.go index a2a4ea20b..150b9d954 100644 --- a/weed/server/common.go +++ b/weed/server/common.go @@ -47,8 +47,10 @@ func writeJson(w http.ResponseWriter, r *http.Request, httpStatus int, obj inter return } - glog.V(0).Infof("response method:%s URL:%s with httpStatus:%d and JSON:%s", - r.Method, r.URL.String(), httpStatus, string(bytes)) + if httpStatus >= 400 { + glog.V(0).Infof("response method:%s URL:%s with httpStatus:%d and JSON:%s", + r.Method, r.URL.String(), httpStatus, string(bytes)) + } callback := r.FormValue("callback") if callback == "" { diff --git a/weed/server/volume_server_handlers.go b/weed/server/volume_server_handlers.go index 69662265b..14ad27d42 100644 --- a/weed/server/volume_server_handlers.go +++ b/weed/server/volume_server_handlers.go @@ -25,8 +25,6 @@ security settings: */ func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Request) { - glog.V(0).Infof("request method:%s URL:%s", r.Method, r.URL.String()) - switch r.Method { case "GET", "HEAD": stats.ReadRequest()