mirror of
https://github.com/rclone/rclone.git
synced 2025-01-11 00:40:03 +01:00
qingcloud: fix typos in trace messages
This commit is contained in:
parent
1f6a1cd26d
commit
7e7f3de355
@ -179,13 +179,13 @@ func (u *uploader) upload() error {
|
|||||||
// Do one read to determine if we have more than one part
|
// Do one read to determine if we have more than one part
|
||||||
reader, _, err := u.nextReader()
|
reader, _, err := u.nextReader()
|
||||||
if err == io.EOF { // single part
|
if err == io.EOF { // single part
|
||||||
fs.Debugf(u, "Tried to upload a singile object to QingStor")
|
fs.Debugf(u, "Uploading as single part object to QingStor")
|
||||||
return u.singlePartUpload(reader)
|
return u.singlePartUpload(reader)
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return errors.Errorf("read upload data failed: %s", err)
|
return errors.Errorf("read upload data failed: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.Debugf(u, "Treied to upload a multi-part object to QingStor")
|
fs.Debugf(u, "Uploading as multi-part object to QingStor")
|
||||||
mu := multiUploader{uploader: u}
|
mu := multiUploader{uploader: u}
|
||||||
return mu.multiPartUpload(reader)
|
return mu.multiPartUpload(reader)
|
||||||
}
|
}
|
||||||
@ -261,7 +261,7 @@ func (mu *multiUploader) initiate() error {
|
|||||||
req := qs.InitiateMultipartUploadInput{
|
req := qs.InitiateMultipartUploadInput{
|
||||||
ContentType: &mu.cfg.mimeType,
|
ContentType: &mu.cfg.mimeType,
|
||||||
}
|
}
|
||||||
fs.Debugf(mu, "Tried to initiate a multi-part upload")
|
fs.Debugf(mu, "Initiating a multi-part upload")
|
||||||
rsp, err := bucketInit.InitiateMultipartUpload(mu.cfg.key, &req)
|
rsp, err := bucketInit.InitiateMultipartUpload(mu.cfg.key, &req)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
mu.uploadID = rsp.UploadID
|
mu.uploadID = rsp.UploadID
|
||||||
@ -279,12 +279,12 @@ func (mu *multiUploader) send(c chunk) error {
|
|||||||
ContentLength: &c.size,
|
ContentLength: &c.size,
|
||||||
Body: c.buffer,
|
Body: c.buffer,
|
||||||
}
|
}
|
||||||
fs.Debugf(mu, "Tried to upload a part to QingStor that partNumber %d and partSize %d", c.partNumber, c.size)
|
fs.Debugf(mu, "Uploading a part to QingStor with partNumber %d and partSize %d", c.partNumber, c.size)
|
||||||
_, err := bucketInit.UploadMultipart(mu.cfg.key, &req)
|
_, err := bucketInit.UploadMultipart(mu.cfg.key, &req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fs.Debugf(mu, "Upload part finished that partNumber %d and partSize %d", c.partNumber, c.size)
|
fs.Debugf(mu, "Done uploading part partNumber %d and partSize %d", c.partNumber, c.size)
|
||||||
|
|
||||||
mu.mtx.Lock()
|
mu.mtx.Lock()
|
||||||
defer mu.mtx.Unlock()
|
defer mu.mtx.Unlock()
|
||||||
@ -304,7 +304,7 @@ func (mu *multiUploader) list() error {
|
|||||||
req := qs.ListMultipartInput{
|
req := qs.ListMultipartInput{
|
||||||
UploadID: mu.uploadID,
|
UploadID: mu.uploadID,
|
||||||
}
|
}
|
||||||
fs.Debugf(mu, "Tried to list a multi-part")
|
fs.Debugf(mu, "Reading multi-part details")
|
||||||
rsp, err := bucketInit.ListMultipart(mu.cfg.key, &req)
|
rsp, err := bucketInit.ListMultipart(mu.cfg.key, &req)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
mu.objectParts = rsp.ObjectParts
|
mu.objectParts = rsp.ObjectParts
|
||||||
@ -331,7 +331,7 @@ func (mu *multiUploader) complete() error {
|
|||||||
ObjectParts: mu.objectParts,
|
ObjectParts: mu.objectParts,
|
||||||
ETag: &md5String,
|
ETag: &md5String,
|
||||||
}
|
}
|
||||||
fs.Debugf(mu, "Tried to complete a multi-part")
|
fs.Debugf(mu, "Completing multi-part object")
|
||||||
_, err = bucketInit.CompleteMultipartUpload(mu.cfg.key, &req)
|
_, err = bucketInit.CompleteMultipartUpload(mu.cfg.key, &req)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
fs.Debugf(mu, "Complete multi-part finished")
|
fs.Debugf(mu, "Complete multi-part finished")
|
||||||
@ -348,7 +348,7 @@ func (mu *multiUploader) abort() error {
|
|||||||
req := qs.AbortMultipartUploadInput{
|
req := qs.AbortMultipartUploadInput{
|
||||||
UploadID: uploadID,
|
UploadID: uploadID,
|
||||||
}
|
}
|
||||||
fs.Debugf(mu, "Tried to abort a multi-part")
|
fs.Debugf(mu, "Aborting multi-part object %q", *uploadID)
|
||||||
_, err = bucketInit.AbortMultipartUpload(mu.cfg.key, &req)
|
_, err = bucketInit.AbortMultipartUpload(mu.cfg.key, &req)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user