From 67455a1df1cbc49c15e81e0dcd5f2aa951d87b55 Mon Sep 17 00:00:00 2001 From: Laurent Savaete Date: Fri, 24 Jun 2022 11:50:28 -0300 Subject: [PATCH] fix: ensure all streams log sync costs (#752) Ensure all streams log sync costs --- singer_sdk/tap_base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/singer_sdk/tap_base.py b/singer_sdk/tap_base.py index 8f4f59e27..75f1b481e 100644 --- a/singer_sdk/tap_base.py +++ b/singer_sdk/tap_base.py @@ -378,6 +378,10 @@ def sync_all(self) -> None: stream.sync() stream.finalize_state_progress_markers() + + # this second loop is needed for all streams to print out their costs + # including child streams which are otherwise skipped in the loop above + for stream in self.streams.values(): stream.log_sync_costs() # Command Line Execution