From 4dc98c3dbd99c91aa889e3e550ba93222e26460e Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2020 00:28:58 +0000 Subject: [PATCH] Reduce logging lines (#10835) (#10841) (cherry picked from commit d9b389f5106f0e88c399f1a777de9405af29472f) Co-authored-by: sakridge --- 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 07caaeb4573d14..c0f6c02b6431d2 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 74e70add2ad326..fddd5105b6eb3d 100644 --- a/core/src/repair_service.rs +++ b/core/src/repair_service.rs @@ -219,11 +219,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 8b0bb498485594..fe56c87337bedb 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(); } }