mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
use Debug if todo is empty
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
73c413efab
commit
91654bed37
1 changed files with 6 additions and 1 deletions
|
|
@ -164,7 +164,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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue