Skip to content

Commit

Permalink
Only log transaction flushing if non-zero (#4940)
Browse files Browse the repository at this point in the history
  • Loading branch information
dguenther authored May 3, 2024
1 parent 1c7721c commit 82af315
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ironfish/src/memPool/recentlyEvictedCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,11 @@ export class RecentlyEvictedCache {
toFlush = this.removeAtSequenceQueue.peek()
}

this.logger.debug(
`Flushed ${flushCount} transactions from RecentlyEvictedCache after adding block ${sequence}`,
)
if (flushCount !== 0) {
this.logger.debug(
`Flushed ${flushCount} transactions from RecentlyEvictedCache after adding block ${sequence}`,
)
}

this.updateMetrics()

Expand Down

0 comments on commit 82af315

Please sign in to comment.