Tweak debug to remove unreadable datapoints (#6060)

This commit is contained in:
sakridge
2019-10-04 16:25:22 -07:00
committed by GitHub
parent 9c9754fa0f
commit 5ef012b2c1
13 changed files with 31 additions and 47 deletions

View File

@@ -1,5 +1,5 @@
use crate::bank_forks::BankForks;
use solana_metrics::datapoint_info;
use solana_metrics::datapoint_debug;
use solana_runtime::bank::Bank;
use solana_sdk::account::Account;
use solana_sdk::hash::Hash;
@@ -99,7 +99,7 @@ impl Tower {
vote_state.nth_recent_vote(0).map(|v| v.slot).unwrap_or(0) as i64
);
debug!("observed root {}", vote_state.root_slot.unwrap_or(0) as i64);
datapoint_info!(
datapoint_debug!(
"tower-observed",
(
"slot",
@@ -214,7 +214,7 @@ impl Tower {
self.lockouts.process_vote_unchecked(&vote);
self.last_vote = vote;
datapoint_info!(
datapoint_debug!(
"tower-vote",
("latest", slot, i64),
("root", self.lockouts.root_slot.unwrap_or(0), i64)