From 9b01a99d9a93b2502746fe6870945823be48cc5f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 21 Jan 2020 22:45:50 -0800 Subject: [PATCH] adjust logging --- weed/server/common.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/server/common.go b/weed/server/common.go index 6828e9dc5..31a9a73b8 100644 --- a/weed/server/common.go +++ b/weed/server/common.go @@ -77,7 +77,8 @@ func writeJson(w http.ResponseWriter, r *http.Request, httpStatus int, obj inter // wrapper for writeJson - just logs errors func writeJsonQuiet(w http.ResponseWriter, r *http.Request, httpStatus int, obj interface{}) { if err := writeJson(w, r, httpStatus, obj); err != nil { - glog.V(0).Infof("error writing JSON %+v status %d: %v", obj, httpStatus, err) + glog.V(0).Infof("error writing JSON status %d: %v", httpStatus, err) + glog.V(1).Infof("JSON content: %+v", obj) } } func writeJsonError(w http.ResponseWriter, r *http.Request, httpStatus int, err error) {