mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust log format
This commit is contained in:
parent
3ac54792e1
commit
6071be104b
|
@ -69,7 +69,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 %s status %d: %v", obj, httpStatus, err)
|
glog.V(0).Infof("error writing JSON %+v status %d: %v", obj, httpStatus, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func writeJsonError(w http.ResponseWriter, r *http.Request, httpStatus int, err error) {
|
func writeJsonError(w http.ResponseWriter, r *http.Request, httpStatus int, err error) {
|
||||||
|
|
Loading…
Reference in a new issue