File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/fivetran-destination/src/destination Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -653,6 +653,8 @@ async fn copy_files(
653
653
654
654
// Stream the files into the COPY FROM sink.
655
655
for path in files {
656
+ tracing:: info!( ?path, "starting copy" ) ;
657
+
656
658
// Open the CSV file, returning an AsyncReader.
657
659
let file = load_file ( file_config, path)
658
660
. await
@@ -666,8 +668,14 @@ async fn copy_files(
666
668
let mut record_stream = adapter. into_stream ( ) ;
667
669
while let Some ( maybe_record) = record_stream. next ( ) . await {
668
670
let record = maybe_record?;
669
- csv_sink. write_byte_record ( & record) . await ?;
671
+ csv_sink
672
+ . write_byte_record ( & record)
673
+ . await
674
+ . context ( "writing record" ) ?;
675
+ csv_sink. flush ( ) . await . context ( "flushing record" ) ?;
670
676
}
677
+
678
+ tracing:: info!( ?path, "finished copy" ) ;
671
679
}
672
680
}
673
681
You can’t perform that action at this time.
0 commit comments