Skip to content

Commit

Permalink
Log file copy info
Browse files Browse the repository at this point in the history
  • Loading branch information
benmoriceau committed Oct 25, 2024
1 parent 367e2f0 commit d8a3bb0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ class S3ConsumerFactory {
val dataFile = File(absolutePath)
val fileSize = dataFile.length()
val startTimeMs = System.currentTimeMillis()
LOGGER.info { "Writing file: ${dataFile.name}" }
storageOps.loadDataIntoBucket(
fullObjectKey = fullObjectKey,
fileName = dataFile.name,
Expand All @@ -318,6 +319,7 @@ class S3ConsumerFactory {
LOGGER.info {
"wrote ${FileUtils.byteCountToDisplaySize(fileSize)} file in $elapsedTimeSeconds s, for a speed of ${decimalFormat.format(speedMBps)} MBps"
}
LOGGER.info { "Deleting file: ${dataFile.name}" }
dataFile.delete()
}

Expand Down

0 comments on commit d8a3bb0

Please sign in to comment.