mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
Change retire progress log level to debug (#9153)
This moved the log level of retire progress messaging to debug, to avoid log nose on qa and test runs
This commit is contained in:
parent
235af8a321
commit
15ff41876c
@ -434,7 +434,7 @@ func SnapshotsPrune(s *PruneState, initialCycle bool, cfg SnapshotsCfg, ctx cont
|
|||||||
minBlockNumber = cfg.snapshotUploader.minBlockNumber()
|
minBlockNumber = cfg.snapshotUploader.minBlockNumber()
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg.blockRetire.RetireBlocksInBackground(ctx, minBlockNumber, s.ForwardProgress, log.LvlInfo, func(downloadRequest []services.DownloadRequest) error {
|
cfg.blockRetire.RetireBlocksInBackground(ctx, minBlockNumber, s.ForwardProgress, log.LvlDebug, func(downloadRequest []services.DownloadRequest) error {
|
||||||
if cfg.snapshotDownloader != nil && !reflect.ValueOf(cfg.snapshotDownloader).IsNil() {
|
if cfg.snapshotDownloader != nil && !reflect.ValueOf(cfg.snapshotDownloader).IsNil() {
|
||||||
if err := snapshotsync.RequestSnapshotsDownload(ctx, downloadRequest, cfg.snapshotDownloader); err != nil {
|
if err := snapshotsync.RequestSnapshotsDownload(ctx, downloadRequest, cfg.snapshotDownloader); err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -194,7 +194,7 @@ func (br *BlockRetire) retireBorBlocks(ctx context.Context, minBlockNum uint64,
|
|||||||
|
|
||||||
merger := NewBorMerger(tmpDir, workers, lvl, db, chainConfig, notifier, logger)
|
merger := NewBorMerger(tmpDir, workers, lvl, db, chainConfig, notifier, logger)
|
||||||
rangesToMerge := merger.FindMergeRanges(snapshots.Ranges())
|
rangesToMerge := merger.FindMergeRanges(snapshots.Ranges())
|
||||||
logger.Warn("[bor snapshots] Retire Bor Blocks", "rangesToMerge", fmt.Sprintf("%s", Ranges(rangesToMerge)))
|
logger.Log(lvl, "[bor snapshots] Retire Bor Blocks", "rangesToMerge", fmt.Sprintf("%s", Ranges(rangesToMerge)))
|
||||||
if len(rangesToMerge) == 0 {
|
if len(rangesToMerge) == 0 {
|
||||||
return ok, nil
|
return ok, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user