Reduce logging lines (#10835)

This commit is contained in:
sakridge 2020-06-29 15:57:28 -07:00 committed by GitHub
parent 583cec922b
commit d9b389f510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -2084,7 +2084,7 @@ impl ClusterInfo {
}
fn print_reset_stats(&self, last_print: &mut Instant) {
if last_print.elapsed().as_millis() > 1000 {
if last_print.elapsed().as_millis() > 2000 {
datapoint_info!(
"cluster_info_stats",
("entrypoint", self.stats.entrypoint.clear(), i64),

View File

@ -217,11 +217,11 @@ impl RepairService {
});
}
if last_stats.elapsed().as_secs() > 1 {
if last_stats.elapsed().as_secs() > 2 {
let repair_total = repair_stats.shred.count
+ repair_stats.highest_shred.count
+ repair_stats.orphan.count;
info!("repair_stats: {:#?}", repair_stats);
info!("repair_stats: {:?}", repair_stats);
if repair_total > 0 {
datapoint_info!(
"serve_repair-repair",

View File

@ -160,11 +160,11 @@ fn update_retransmit_stats(
),
);
let mut packets_by_slot = stats.packets_by_slot.lock().unwrap();
info!("retransmit: packets_by_slot: {:#?}", packets_by_slot);
info!("retransmit: packets_by_slot: {:?}", packets_by_slot);
packets_by_slot.clear();
drop(packets_by_slot);
let mut packets_by_source = stats.packets_by_source.lock().unwrap();
info!("retransmit: packets_by_source: {:#?}", packets_by_source);
info!("retransmit: packets_by_source: {:?}", packets_by_source);
packets_by_source.clear();
}
}