Skip to content

Commit

Permalink
Add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vusirikala committed Jul 18, 2024
1 parent 9538139 commit b2f2291
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mempool/src/core_mempool/transaction_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,16 @@ impl TransactionStore {
last_timeline_id[i] = timeline_id;
}
let bucket = self.timeline_index.get_bucket(txn.ranking_score);
info!(
"read_timeline: {} {}, time taken: {:?}, before: {:?}, high_time_taken: {}, priority: {}, submitted_by: {}",
address,
sequence_number,
SystemTime::now().duration_since(txn.insertion_info.insertion_time),
Instant::now().duration_since(before.unwrap_or(Instant::now())),
SystemTime::now().duration_since(txn.insertion_info.insertion_time).unwrap() > Duration::from_millis(15),
txn.priority_of_sender.to_string().as_str(),
txn.insertion_info.submitted_by_label(),
);
Mempool::log_txn_latency(
&txn.insertion_info,
bucket,
Expand Down

0 comments on commit b2f2291

Please sign in to comment.