Skip to content

Commit

Permalink
remove warn log (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx authored Oct 31, 2024
1 parent 13f9c03 commit ed5bd6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions erigon-lib/state/domain_committed.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (dt *DomainRoTx) lookupVisibleFileByItsRange(txFrom uint64, txTo uint64) *f
for _, f := range dt.files {
visibleFiles += fmt.Sprintf("%d-%d;", f.startTxNum/dt.d.aggregationStep, f.endTxNum/dt.d.aggregationStep)
}
dt.d.logger.Warn("[agg] lookupVisibleFileByItsRange: file not found",
dt.d.logger.Trace("[agg] lookupVisibleFileByItsRange: file not found",
"stepFrom", txFrom/dt.d.aggregationStep, "stepTo", txTo/dt.d.aggregationStep,
"_visible", visibleFiles, "visibleFilesCount", len(dt.files))

Expand Down Expand Up @@ -197,7 +197,7 @@ func (dt *DomainRoTx) lookupDirtyFileByItsRange(txFrom uint64, txTo uint64) *fil
for _, item := range dt.d.dirtyFiles.Items() {
fileStepsss += fmt.Sprintf("%d-%d;", item.startTxNum/dt.d.aggregationStep, item.endTxNum/dt.d.aggregationStep)
}
dt.d.logger.Warn("[agg] lookupDirtyFileByItsRange: file not found",
dt.d.logger.Trace("[agg] lookupDirtyFileByItsRange: file not found",
"stepFrom", txFrom/dt.d.aggregationStep, "stepTo", txTo/dt.d.aggregationStep,
"files", fileStepsss, "filesCount", dt.d.dirtyFiles.Len())

Expand Down
4 changes: 2 additions & 2 deletions erigon-lib/state/domain_shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func (sd *SharedDomains) replaceShortenedKeysInBranch(prefix []byte, branch comm
acc := sd.aggTx.d[kv.AccountsDomain]
storageItem := sto.lookupVisibleFileByItsRange(fStartTxNum, fEndTxNum)
if storageItem == nil {
sd.logger.Warn(fmt.Sprintf("visible storage file of steps %d-%d not found\n", fStartTxNum/sd.aggTx.a.aggregationStep, fEndTxNum/sd.aggTx.a.aggregationStep))
sd.logger.Trace(fmt.Sprintf("visible storage file of steps %d-%d not found\n", fStartTxNum/sd.aggTx.a.aggregationStep, fEndTxNum/sd.aggTx.a.aggregationStep))
storageItem = sto.lookupDirtyFileByItsRange(fStartTxNum, fEndTxNum)
if storageItem == nil {
sd.logger.Crit(fmt.Sprintf("dirty storage file of steps %d-%d not found\n", fStartTxNum/sd.aggTx.a.aggregationStep, fEndTxNum/sd.aggTx.a.aggregationStep))
Expand All @@ -492,7 +492,7 @@ func (sd *SharedDomains) replaceShortenedKeysInBranch(prefix []byte, branch comm
}
accountItem := acc.lookupVisibleFileByItsRange(fStartTxNum, fEndTxNum)
if accountItem == nil {
sd.logger.Warn(fmt.Sprintf("visible account file of steps %d-%d not found\n", fStartTxNum/sd.aggTx.a.aggregationStep, fEndTxNum/sd.aggTx.a.aggregationStep))
sd.logger.Trace(fmt.Sprintf("visible account file of steps %d-%d not found\n", fStartTxNum/sd.aggTx.a.aggregationStep, fEndTxNum/sd.aggTx.a.aggregationStep))
accountItem = acc.lookupDirtyFileByItsRange(fStartTxNum, fEndTxNum)
if accountItem == nil {
sd.logger.Crit(fmt.Sprintf("dirty account file of steps %d-%d not found\n", fStartTxNum/sd.aggTx.a.aggregationStep, fEndTxNum/sd.aggTx.a.aggregationStep))
Expand Down

0 comments on commit ed5bd6d

Please sign in to comment.