From 4240502e64f34518f6fcebddb172970b5f4bf849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Mon, 4 Nov 2024 17:07:42 +0200 Subject: [PATCH] Additional logging. --- txcache/eviction.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/txcache/eviction.go b/txcache/eviction.go index b230c968..40cff622 100644 --- a/txcache/eviction.go +++ b/txcache/eviction.go @@ -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(), @@ -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(), @@ -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