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 <gbbafna@amazon.com>
  • Loading branch information
gbbafna authored Aug 22, 2024
1 parent b830d68 commit 0ca4ed0
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 0ca4ed0

Please sign in to comment.