SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
log JSON response if httpStatus >= 400
bingoohuang41cab5d69f23
diff --git a/weed/server/common.go b/weed/server/common.goindex f064ca7079..150b9d954e 100644--- a/weed/server/common.go+++ b/weed/server/common.go@@ -46,6 +46,12 @@ func writeJson(w http.ResponseWriter, r *http.Request, httpStatus int, obj interif err != nil {return}++ if httpStatus >= 400 {+ glog.V(0).Infof("response method:%s URL:%s with httpStatus:%d and JSON:%s",+ r.Method, r.URL.String(), httpStatus, string(bytes))+ }+callback := r.FormValue("callback")if callback == "" {w.Header().Set("Content-Type", "application/json")