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:
Mark Holt 2024-01-08 00:10:45 +00:00 committed by GitHub
parent 235af8a321
commit 15ff41876c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
} }