From ea2fa15e34a62dbe322ef3ef093af8922341dfa9 Mon Sep 17 00:00:00 2001 From: Mitja T Date: Tue, 7 Nov 2023 07:04:07 +0100 Subject: [PATCH] rearrange logging so startup wait is more informed --- analyzer/block/block.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/analyzer/block/block.go b/analyzer/block/block.go index cdfb3ab92..884c3cd06 100644 --- a/analyzer/block/block.go +++ b/analyzer/block/block.go @@ -208,6 +208,7 @@ func (b *blockBasedAnalyzer) isBlockProcessedBySlowSync(ctx context.Context, hei // that that assumption is valid even in the face of misconfigured past runs, e.g. if we // processed the range [1000, 2000] but now want to process [1, infinity). func (b *blockBasedAnalyzer) softEnqueueGapsInProcessedBlocks(ctx context.Context) error { + b.logger.Info("fast-sync: ensuring that any gaps in the already-processed block range can be picked up later", "from", b.blockRange.From, "to", b.blockRange.To) batch := &storage.QueryBatch{} batch.Queue( queries.SoftEnqueueGapsInProcessedBlocks, @@ -219,7 +220,7 @@ func (b *blockBasedAnalyzer) softEnqueueGapsInProcessedBlocks(ctx context.Contex b.logger.Error("failed to soft-enqueue gaps in already-processed blocks", "err", err, "from", b.blockRange.From, "to", b.blockRange.To) return err } - b.logger.Info("ensured that any gaps in the already-processed block range can be picked up later", "from", b.blockRange.From, "to", b.blockRange.To) + b.logger.Info("any potential gaps resolved", "from", b.blockRange.From, "to", b.blockRange.To) return nil }