aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-10-24 00:12:02 -0700
committerChris Lu <chris.lu@gmail.com>2020-10-24 00:12:02 -0700
commit19772d70d7c56a06cfda85aad9b8a932eca93b25 (patch)
treecd9abf020a370cb8bb2d3eb3da09960c9b6231d7 /weed
parent5b92dfe3028907d24fa8a8f28551addebb74dba6 (diff)
downloadseaweedfs-19772d70d7c56a06cfda85aad9b8a932eca93b25.tar.xz
seaweedfs-19772d70d7c56a06cfda85aad9b8a932eca93b25.zip
print for debugging
Diffstat (limited to 'weed')
-rw-r--r--weed/operation/upload_content.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index dc92125a8..a4148cb22 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -230,12 +230,14 @@ func upload_content(uploadUrl string, fillBufferFunction func(w io.Writer) error
if jwt != "" {
req.Header.Set("Authorization", "BEARER "+string(jwt))
}
+ // print("+")
resp, post_err := HttpClient.Do(req)
if post_err != nil {
glog.Errorf("upload %s %d bytes to %v: %v", filename, originalDataSize, uploadUrl, post_err)
debug.PrintStack()
return nil, fmt.Errorf("upload %s %d bytes to %v: %v", filename, originalDataSize, uploadUrl, post_err)
}
+ // print("-")
defer util.CloseResponse(resp)
var ret UploadResult