Browse Source

volume server logs add url info

debug https://github.com/seaweedfs/seaweedfs/issues/3964
pull/4051/head
chrislu 2 years ago
parent
commit
fc6b9e6e0c
  1. 2
      weed/server/common.go

2
weed/server/common.go

@ -103,7 +103,7 @@ func writeJson(w http.ResponseWriter, r *http.Request, httpStatus int, obj inter
// wrapper for writeJson - just logs errors // wrapper for writeJson - just logs errors
func writeJsonQuiet(w http.ResponseWriter, r *http.Request, httpStatus int, obj interface{}) { func writeJsonQuiet(w http.ResponseWriter, r *http.Request, httpStatus int, obj interface{}) {
if err := writeJson(w, r, httpStatus, obj); err != nil { if err := writeJson(w, r, httpStatus, obj); err != nil {
glog.V(0).Infof("error writing JSON status %d: %v", httpStatus, err)
glog.V(0).Infof("error writing JSON status %s %d: %v", r.URL, httpStatus, err)
glog.V(1).Infof("JSON content: %+v", obj) glog.V(1).Infof("JSON content: %+v", obj)
} }
} }

Loading…
Cancel
Save