mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
more error details in the log (#3568)
* more error details in the log https://github.com/seaweedfs/seaweedfs/issues/3567 * format message
This commit is contained in:
parent
10efdc7aab
commit
82c2ce74db
|
@ -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…
Reference in a new issue