Tweak log messages
This commit is contained in:
parent
83ae5bcee2
commit
1f08b22c8e
|
@ -398,7 +398,7 @@ impl Bank {
|
||||||
/// Process a batch of transactions.
|
/// Process a batch of transactions.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn process_transactions(&self, txs: Vec<Transaction>) -> Vec<Result<Transaction>> {
|
pub fn process_transactions(&self, txs: Vec<Transaction>) -> Vec<Result<Transaction>> {
|
||||||
debug!("processing Transactions {}", txs.len());
|
debug!("processing transactions: {}", txs.len());
|
||||||
// TODO right now a single write lock is held for the duration of processing all the
|
// TODO right now a single write lock is held for the duration of processing all the
|
||||||
// transactions
|
// transactions
|
||||||
// To break this lock each account needs to be locked to prevent concurrent access
|
// To break this lock each account needs to be locked to prevent concurrent access
|
||||||
|
@ -422,7 +422,7 @@ impl Bank {
|
||||||
Self::store_accounts(&res, &loaded_accounts, &mut accounts);
|
Self::store_accounts(&res, &loaded_accounts, &mut accounts);
|
||||||
let write_elapsed = now.elapsed();
|
let write_elapsed = now.elapsed();
|
||||||
debug!(
|
debug!(
|
||||||
"load: {} us execution: {} us write: {} us tx: {}",
|
"load: {}us execution: {}us write: {}us txs_len={}",
|
||||||
duration_as_us(&load_elapsed),
|
duration_as_us(&load_elapsed),
|
||||||
duration_as_us(&execution_elapsed),
|
duration_as_us(&execution_elapsed),
|
||||||
duration_as_us(&write_elapsed),
|
duration_as_us(&write_elapsed),
|
||||||
|
@ -435,7 +435,7 @@ impl Bank {
|
||||||
tx_count += 1;
|
tx_count += 1;
|
||||||
} else {
|
} else {
|
||||||
if err_count == 0 {
|
if err_count == 0 {
|
||||||
trace!("tx error: {:?}", r);
|
debug!("tx error: {:?}", r);
|
||||||
}
|
}
|
||||||
err_count += 1;
|
err_count += 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue