Add error logging to dead slots (#7000)

This commit is contained in:
carllin
2019-11-16 02:54:51 -08:00
committed by GitHub
parent 7c32640a9b
commit 70322d1ff8
2 changed files with 6 additions and 2 deletions

View File

@ -488,7 +488,11 @@ impl ReplayStage {
bank.slot(),
replay_result
);
datapoint_warn!("replay-stage-mark_dead_slot", ("slot", bank.slot(), i64),);
datapoint_error!(
"replay-stage-mark_dead_slot",
("error", format!("error: {:?}", replay_result), String),
("slot", bank.slot(), i64)
);
Self::mark_dead_slot(bank.slot(), blocktree, progress);
}