Skip to content

Commit

Permalink
chore: add missing trace targets (#6739)
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
  • Loading branch information
mattsse and onbjerg committed Feb 22, 2024
1 parent 755ce9e commit c7ae4ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/transaction-pool/src/pool/txpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ impl<T: TransactionOrdering> TxPool<T> {
while $this.$pool.exceeds(&$this.config.$limit)
{
trace!(
target: "txpool",
"discarding transactions from {}, limit: {:?}, curr size: {}, curr len: {}",
stringify!($pool),
$this.config.$limit,
Expand All @@ -804,6 +805,7 @@ impl<T: TransactionOrdering> TxPool<T> {
let removed_from_subpool = $this.$pool.truncate_pool($this.config.$limit.clone());

trace!(
target: "txpool",
"removed {} transactions from {}, limit: {:?}, curr size: {}, curr len: {}",
removed_from_subpool.len(),
stringify!($pool),
Expand Down

0 comments on commit c7ae4ef

Please sign in to comment.