Browse Source

more error details in the log (#3568)

* more error details in the log
https://github.com/seaweedfs/seaweedfs/issues/3567

* format message
pull/3572/head
Konstantin Lebedev 2 years ago
committed by GitHub
parent
commit
82c2ce74db
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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