From 090547299179dd01aa79f91aeb3813052145901e Mon Sep 17 00:00:00 2001 From: qananasikq Date: Mon, 27 Apr 2026 13:09:41 +0300 Subject: [PATCH] Harden fast sync progress logging --- iaai_scraper/fast_sync.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/iaai_scraper/fast_sync.py b/iaai_scraper/fast_sync.py index 92911ce..8f0281c 100644 --- a/iaai_scraper/fast_sync.py +++ b/iaai_scraper/fast_sync.py @@ -238,7 +238,14 @@ class FastSyncEngine: if index % 100 == 0 or index == len(candidates): elapsed = max(0.001, time.perf_counter() - started_details) - if self.client._settings.scraping_profile.verbose_progress_logs: + verbose_progress_logs = bool( + getattr( + getattr(getattr(self.client, "_settings", None), "scraping_profile", None), + "verbose_progress_logs", + False, + ) + ) + if verbose_progress_logs: logger.info( "Fast HTTP-first details progress: processed=%d/%d ok=%d failed=%d queued_db=%d rate=%.2f/s", index,