FileAwareInputStreamDataWriter: Add a log statement when we begin file copies so if an
exception is thrown it is easy to tie that back to the filename.
Closes from eogren/gobblin-220
@@ -226,6 +226,8 @@ public class FileAwareInputStreamDataWriter extends InstrumentedDataWriter<FileA
.targetURI(this.fs.makeQualified(writeAt).toUri()).build();
StreamCopier copier = new StreamCopier(throttledInputStream, os).withBufferSize(this.bufferSize);
+ log.info("File {}: Starting copy", copyableFile.getOrigin().getPath());
+
if (isInstrumentationEnabled()) {
copier.withCopySpeedMeter(this.copySpeedMeter);
}
