From d9b389f5106f0e88c399f1a777de9405af29472f Mon Sep 17 00:00:00 2001 From: sakridge Date: Mon, 29 Jun 2020 15:57:28 -0700 Subject: [PATCH] Reduce logging lines (#10835) --- core/src/cluster_info.rs | 2 +- core/src/repair_service.rs | 4 ++-- core/src/retransmit_stage.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/cluster_info.rs b/core/src/cluster_info.rs index 2cdaba3749..0ca7300772 100644 --- a/core/src/cluster_info.rs +++ b/core/src/cluster_info.rs @@ -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), diff --git a/core/src/repair_service.rs b/core/src/repair_service.rs index 3d86d4f46b..b29a085de9 100644 --- a/core/src/repair_service.rs +++ b/core/src/repair_service.rs @@ -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", diff --git a/core/src/retransmit_stage.rs b/core/src/retransmit_stage.rs index 0f1f7f7e48..a0811e2d43 100644 --- a/core/src/retransmit_stage.rs +++ b/core/src/retransmit_stage.rs @@ -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(); } }