Skip to content

Commit

Permalink
less logs about compression (erigontech#6812)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Feb 9, 2023
1 parent ec52990 commit 145f689
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eth/stagedsync/stage_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func retireBlocksInSingleBackgroundThread(s *PruneState, blockRetire *snapshotsy
}
}

blockRetire.RetireBlocksInBackground(ctx, s.ForwardProgress, log.LvlInfo)
blockRetire.RetireBlocksInBackground(ctx, s.ForwardProgress, log.LvlDebug)

return nil
}
8 changes: 4 additions & 4 deletions turbo/snapshotsync/block_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ func DumpTxs(ctx context.Context, db kv.RoDB, segmentFile, tmpDir string, blockF
chainConfig := fromdb.ChainConfig(db)
chainID, _ := uint256.FromBig(chainConfig.ChainID)

f, err := compress.NewCompressor(ctx, "Snapshot Txs", segmentFile, tmpDir, compress.MinPatternScore, workers, lvl)
f, err := compress.NewCompressor(ctx, "Snapshot Txs", segmentFile, tmpDir, compress.MinPatternScore, workers, log.LvlTrace)
if err != nil {
return 0, fmt.Errorf("NewCompressor: %w, %s", err, segmentFile)
}
Expand Down Expand Up @@ -1504,7 +1504,7 @@ func DumpHeaders(ctx context.Context, db kv.RoDB, segmentFilePath, tmpDir string
logEvery := time.NewTicker(20 * time.Second)
defer logEvery.Stop()

f, err := compress.NewCompressor(ctx, "Snapshot Headers", segmentFilePath, tmpDir, compress.MinPatternScore, workers, lvl)
f, err := compress.NewCompressor(ctx, "Snapshot Headers", segmentFilePath, tmpDir, compress.MinPatternScore, workers, log.LvlTrace)
if err != nil {
return err
}
Expand Down Expand Up @@ -1566,7 +1566,7 @@ func DumpBodies(ctx context.Context, db kv.RoDB, segmentFilePath, tmpDir string,
logEvery := time.NewTicker(20 * time.Second)
defer logEvery.Stop()

f, err := compress.NewCompressor(ctx, "Snapshot Bodies", segmentFilePath, tmpDir, compress.MinPatternScore, workers, lvl)
f, err := compress.NewCompressor(ctx, "Snapshot Bodies", segmentFilePath, tmpDir, compress.MinPatternScore, workers, log.LvlTrace)
if err != nil {
return err
}
Expand Down Expand Up @@ -2090,7 +2090,7 @@ func (m *Merger) merge(ctx context.Context, toMerge []string, targetFile string,
expectedTotal += d.Count()
}

f, err := compress.NewCompressor(ctx, "Snapshots merge", targetFile, m.tmpDir, compress.MinPatternScore, m.workers, m.lvl)
f, err := compress.NewCompressor(ctx, "Snapshots merge", targetFile, m.tmpDir, compress.MinPatternScore, m.workers, log.LvlTrace)
if err != nil {
return err
}
Expand Down

0 comments on commit 145f689

Please sign in to comment.