From 5294f701896791471708448c4c51cc60df1ef485 Mon Sep 17 00:00:00 2001 From: sakridge Date: Mon, 14 Dec 2020 16:26:17 -0800 Subject: [PATCH] Remove some non-warnings (#14115) --- core/src/banking_stage.rs | 4 ++-- core/src/poh_recorder.rs | 4 ++-- runtime/src/bank.rs | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/src/banking_stage.rs b/core/src/banking_stage.rs index 3aa6f5f0c6..a1645365e4 100644 --- a/core/src/banking_stage.rs +++ b/core/src/banking_stage.rs @@ -15,7 +15,7 @@ use solana_ledger::{ leader_schedule_cache::LeaderScheduleCache, }; use solana_measure::{measure::Measure, thread_mem_usage}; -use solana_metrics::{inc_new_counter_debug, inc_new_counter_info, inc_new_counter_warn}; +use solana_metrics::{inc_new_counter_debug, inc_new_counter_info}; use solana_perf::{ cuda_runtime::PinnedVec, packet::{limited_deserialize, Packet, Packets, PACKETS_PER_BATCH}, @@ -487,7 +487,7 @@ impl BankingStage { debug!("num_to_commit: {} ", num_to_commit); // unlock all the accounts with errors which are filtered by the above `filter_map` if !processed_transactions.is_empty() { - inc_new_counter_warn!("banking_stage-record_transactions", num_to_commit); + inc_new_counter_info!("banking_stage-record_transactions", num_to_commit); let mut hash_time = Measure::start("record::hash"); let hash = hash_transactions(&processed_transactions[..]); diff --git a/core/src/poh_recorder.rs b/core/src/poh_recorder.rs index b9d556be4e..f95b32f678 100644 --- a/core/src/poh_recorder.rs +++ b/core/src/poh_recorder.rs @@ -404,13 +404,13 @@ impl PohRecorder { { let now = Instant::now(); let mut poh_lock = self.poh.lock().unwrap(); - inc_new_counter_warn!( + inc_new_counter_info!( "poh_recorder-record_lock_contention", timing::duration_as_us(&now.elapsed()) as usize ); let now = Instant::now(); let res = poh_lock.record(mixin); - inc_new_counter_warn!( + inc_new_counter_info!( "poh_recorder-record_ms", timing::duration_as_us(&now.elapsed()) as usize ); diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index bca9f75775..12c92ae2fa 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -9254,11 +9254,11 @@ pub(crate) mod tests { let custodian_pubkey = custodian_keypair.pubkey(); let nonce_pubkey = nonce_keypair.pubkey(); - warn!("alice: {}", alice_pubkey); - warn!("custodian: {}", custodian_pubkey); - warn!("nonce: {}", nonce_pubkey); - warn!("nonce account: {:?}", bank.get_account(&nonce_pubkey)); - warn!("cust: {:?}", bank.get_account(&custodian_pubkey)); + debug!("alice: {}", alice_pubkey); + debug!("custodian: {}", custodian_pubkey); + debug!("nonce: {}", nonce_pubkey); + debug!("nonce account: {:?}", bank.get_account(&nonce_pubkey)); + debug!("cust: {:?}", bank.get_account(&custodian_pubkey)); let nonce_hash = get_nonce_account(&bank, &nonce_pubkey).unwrap(); for _ in 0..MAX_RECENT_BLOCKHASHES + 1 { @@ -9275,7 +9275,7 @@ pub(crate) mod tests { &[&custodian_keypair, &nonce_keypair], nonce_hash, ); - warn!("{:?}", durable_tx); + debug!("{:?}", durable_tx); assert_eq!( bank.process_transaction(&durable_tx), Err(TransactionError::InstructionError(