Fix misleading log in WriteBufferFromS3

This commit is contained in:
feng lv 2021-03-22 05:49:41 +00:00
parent 95c87d4ded
commit d40ffa96e2

View File

@ -159,7 +159,8 @@ void WriteBufferFromS3::writePart()
auto outcome = client_ptr->UploadPart(req); auto outcome = client_ptr->UploadPart(req);
LOG_TRACE(log, "Writing part. Bucket: {}, Key: {}, Upload_id: {}, Data size: {}", bucket, key, multipart_upload_id, temporary_buffer->tellp()); LOG_TRACE(
log, "Writing part. Bucket: {}, Key: {}, Upload_id: {}, Data size: {}", bucket, key, multipart_upload_id, req.GetContentLength());
if (outcome.IsSuccess()) if (outcome.IsSuccess())
{ {
@ -215,7 +216,7 @@ void WriteBufferFromS3::makeSinglepartUpload()
auto outcome = client_ptr->PutObject(req); auto outcome = client_ptr->PutObject(req);
if (outcome.IsSuccess()) if (outcome.IsSuccess())
LOG_DEBUG(log, "Single part upload has completed. Bucket: {}, Key: {}", bucket, key); LOG_DEBUG(log, "Single part upload has completed. Bucket: {}, Key: {}, Object size: {}", bucket, key, req.GetContentLength());
else else
throw Exception(outcome.GetError().GetMessage(), ErrorCodes::S3_ERROR); throw Exception(outcome.GetError().GetMessage(), ErrorCodes::S3_ERROR);
} }