Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Remove some non-warnings counters #14115

Merged
merged 1 commit into from
Dec 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/banking_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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[..]);
Expand Down
4 changes: 2 additions & 2 deletions core/src/poh_recorder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
12 changes: 6 additions & 6 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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(
Expand Down