Skip to content

Commit e45631b

Browse files
authored
Fixed the issue that output number in console when update/copy blob sometimes [Azure#16783] (Azure#16788)
1 parent d14e615 commit e45631b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed the issue that output number in console when update/copy blob sometimes [#16783]
22+
- `Set-AzStorageBlobContent`
23+
- `Copy-AzStorageBlob`
2124

2225
## Version 4.1.1
2326
* Fixed the failure of sync copy blob with long destination blob name [#16628]

src/Storage/Storage/Blob/Cmdlet/CopyAzureStorageBlob.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ private async Task CopyFromUri(long taskId, IStorageBlobManagement destChannel,
365365
// Size of the source file might be 0, when it is, directly treat the progress as 100 percent.
366366
pr.PercentComplete = 0 == srcProperties.ContentLength ? 100 : (int)(finishedBytes * 100 / srcProperties.ContentLength);
367367
pr.StatusDescription = string.Format("Percent: {0}%.", pr.PercentComplete);
368-
Console.WriteLine(finishedBytes);
369368
this.OutputStream.WriteProgress(pr);
370369
}
371370
});

src/Storage/Storage/Blob/Cmdlet/SetAzureStorageBlobContent.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ internal virtual async Task UploadBlobwithSdk(long taskId, IStorageBlobManagemen
463463
// Size of the source file might be 0, when it is, directly treat the progress as 100 percent.
464464
pr.PercentComplete = 0 == fileSize ? 100 : (int)(finishedBytes * 100 / fileSize);
465465
pr.StatusDescription = string.Format(CultureInfo.CurrentCulture, Resources.FileTransmitStatus, pr.PercentComplete);
466-
Console.WriteLine(finishedBytes);
467466
this.OutputStream.WriteProgress(pr);
468467
}
469468
});

0 commit comments

Comments
 (0)