refactor(core/txpool): no need to log loud rotate if no local txs #29083 (#2164)

* core/txpool: no need to run rotate if no local txs



* Revert "core/txpool: no need to run rotate if no local txs"

This reverts commit 17fab17388.



* use Debug if todo is empty



---------

Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Delweng <delweng@gmail.com>
This commit is contained in:
Daniel Liu 2026-03-17 13:47:08 +08:00 committed by GitHub
parent 5b0e2e4bf0
commit 1ac34cbac3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,7 +162,12 @@ func (journal *journal) rotate(all map[common.Address]types.Transactions) error
return err
}
journal.writer = sink
log.Info("Regenerated local transaction journal", "transactions", journaled, "accounts", len(all))
logger := log.Info
if len(all) == 0 {
logger = log.Debug
}
logger("Regenerated local transaction journal", "transactions", journaled, "accounts", len(all))
return nil
}