Skip to content

Commit

Permalink
Reduce logging lines (#10835) (#10841)
Browse files Browse the repository at this point in the history
(cherry picked from commit d9b389f)

Co-authored-by: sakridge <[email protected]>
  • Loading branch information
mergify[bot] and sakridge authored Jun 30, 2020
1 parent 9caad64 commit 4dc98c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions core/src/repair_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions core/src/retransmit_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 4dc98c3

Please sign in to comment.