Browse Source

Merge branch 'master' of https://github.com/seaweedfs/seaweedfs

pull/3572/head
chrislu 2 years ago
parent
commit
86a5b6183d
  1. 1
      weed/server/common.go

1
weed/server/common.go

@ -110,6 +110,7 @@ func writeJsonQuiet(w http.ResponseWriter, r *http.Request, httpStatus int, obj
func writeJsonError(w http.ResponseWriter, r *http.Request, httpStatus int, err error) {
m := make(map[string]interface{})
m["error"] = err.Error()
glog.V(1).Infof("error JSON response status %d: %s", httpStatus, m["error"])
writeJsonQuiet(w, r, httpStatus, m)
}

Loading…
Cancel
Save