Use datapoint instead of print for is_full signal (#12673)

This commit is contained in:
sakridge
2020-10-07 13:36:54 -07:00
committed by GitHub
parent b5faa11f73
commit 71a308affd

View File

@ -1293,9 +1293,15 @@ impl Blockstore {
&data_index, &data_index,
); );
if slot_meta.is_full() { if slot_meta.is_full() {
info!( datapoint_info!(
"slot {} is full, last: {}", "shred_insert_is_full",
slot_meta.slot, slot_meta.last_index (
"total_time_ms",
solana_sdk::timing::timestamp() - slot_meta.first_shred_timestamp,
i64
),
("slot", slot_meta.slot, i64),
("last_index", slot_meta.last_index, i64),
); );
} }
trace!("inserted shred into slot {:?} and index {:?}", slot, index); trace!("inserted shred into slot {:?} and index {:?}", slot, index);