Skip to content

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.

correctly print strings in error

Chris Luf7c1a15ad10d
diff --git a/go/operation/upload_content.go b/go/operation/upload_content.go
index cb5ebc399f..bed5e62396 100644
--- a/go/operation/upload_content.go
+++ b/go/operation/upload_content.go
@@ -62,7 +62,7 @@ func Upload(uploadUrl string, filename string, reader io.Reader, isGzipped bool,
var ret UploadResult
err = json.Unmarshal(resp_body, &ret)
if err != nil {
- glog.V(0).Infoln("failing to read upload resonse", uploadUrl, resp_body)
+ glog.V(0).Infoln("failing to read upload resonse", uploadUrl, string(resp_body))
return nil, err
}
if ret.Error != "" {