Harden fast sync progress logging
This commit is contained in:
@@ -238,7 +238,14 @@ class FastSyncEngine:
|
|||||||
|
|
||||||
if index % 100 == 0 or index == len(candidates):
|
if index % 100 == 0 or index == len(candidates):
|
||||||
elapsed = max(0.001, time.perf_counter() - started_details)
|
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(
|
logger.info(
|
||||||
"Fast HTTP-first details progress: processed=%d/%d ok=%d failed=%d queued_db=%d rate=%.2f/s",
|
"Fast HTTP-first details progress: processed=%d/%d ok=%d failed=%d queued_db=%d rate=%.2f/s",
|
||||||
index,
|
index,
|
||||||
|
|||||||
Reference in New Issue
Block a user