less logs about compression (#6812)

This commit is contained in:
Alex Sharov 2023-02-09 12:28:09 +07:00 committed by GitHub
parent ec52990c43
commit 145f689e78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

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

View File

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