mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
less logs about compression (#6812)
This commit is contained in:
parent
ec52990c43
commit
145f689e78
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user