Skip to content

Commit

Permalink
Additional logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Nov 4, 2024
1 parent 8348e11 commit 4240502
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions txcache/eviction.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (cache *TxCache) doEviction() *evictionJournal {
return nil
}

logRemove.Debug("doEviction(): before eviction",
logRemove.Debug("doEviction: before eviction",
"num bytes", cache.NumBytes(),
"num txs", cache.CountTx(),
"num senders", cache.CountSenders(),
Expand All @@ -48,7 +48,7 @@ func (cache *TxCache) doEviction() *evictionJournal {
stopWatch.Stop("eviction")

logRemove.Debug(
"doEviction(): after eviction",
"doEviction: after eviction",
"num bytes", cache.NumBytes(),
"num now", cache.CountTx(),
"num senders", cache.CountSenders(),
Expand Down Expand Up @@ -169,6 +169,8 @@ func (cache *TxCache) evictLeastLikelyToSelectTransactions() *evictionJournal {

journal.numEvictedByPass = append(journal.numEvictedByPass, len(transactionsToEvict))
journal.numEvicted += len(transactionsToEvict)

logRemove.Debug("evictLeastLikelyToSelectTransactions", "pass", pass, "num evicted", len(transactionsToEvict))
}

return journal
Expand Down

0 comments on commit 4240502

Please sign in to comment.