Skip to content

Commit

Permalink
Add log when download completes with file size (opensearch-project#15224
Browse files Browse the repository at this point in the history
)

Signed-off-by: Gaurav Bafna <[email protected]>
  • Loading branch information
gbbafna authored and akolarkunnu committed Sep 10, 2024
1 parent 1fa6440 commit 434fc8b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ private void copyOneFile(
try {
cancellableThreads.executeIO(() -> {
destination.copyFrom(source, file, file, IOContext.DEFAULT);
logger.trace("Downloaded file {} of size {}", file, destination.fileLength(file));
onFileCompletion.run();
if (secondDestination != null) {
secondDestination.copyFrom(destination, file, file, IOContext.DEFAULT);
Expand Down

0 comments on commit 434fc8b

Please sign in to comment.