From fc6b9e6e0cd719ef4ebb66c63aec2bca6c1c1ef6 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 11 Dec 2022 13:15:38 -0800 Subject: [PATCH] volume server logs add url info debug https://github.com/seaweedfs/seaweedfs/issues/3964 --- weed/server/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/common.go b/weed/server/common.go index db2fee2de..ee1122726 100644 --- a/weed/server/common.go +++ b/weed/server/common.go @@ -103,7 +103,7 @@ 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 status %d: %v", httpStatus, err) + glog.V(0).Infof("error writing JSON status %s %d: %v", r.URL, httpStatus, err) glog.V(1).Infof("JSON content: %+v", obj) } }