reduce verbosity of `Got request for pre-backfill slot` (#5876)

When syncing, we log a notice each time someone asks us for a block that
we haven't backfilled yet. This is quite verbose and not unexpected,
because the status message does not allow indicating backfill progress.
This commit is contained in:
Etan Kissling 2024-02-09 20:32:31 +01:00 committed by GitHub
parent 1575478b72
commit f2d92729a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 7 deletions

View File

@ -1633,13 +1633,8 @@ proc getBlockRange*(
head = shortLog(dag.head.root), requestedCount, startSlot, skipStep, headSlot head = shortLog(dag.head.root), requestedCount, startSlot, skipStep, headSlot
if startSlot < dag.backfill.slot: if startSlot < dag.backfill.slot:
if startSlot < dag.horizon: debug "Got request for pre-backfill slot",
# We will not backfill these startSlot, backfillSlot = dag.backfill.slot, horizonSlot = dag.horizon
debug "Got request for pre-horizon slot",
startSlot, backfillSlot = dag.backfill.slot
else:
notice "Got request for pre-backfill slot",
startSlot, backfillSlot = dag.backfill.slot
return output.len return output.len
if headSlot <= startSlot or requestedCount == 0: if headSlot <= startSlot or requestedCount == 0: