Add unsafe VRPs to summary output.
@@ -648,20 +648,25 @@ fn summary_header<M: AsRef<Metrics>, W: io::Write>(
) -> Result<(), io::Error> {
let mut roas = 0;
let mut valid_vrps = 0;
+ let mut unsafe_vrps = 0;
let mut final_vrps = 0;
writeln!(output, "Summary at {}", metrics.as_ref().time())?;
for tal in metrics.as_ref().tals() {
- writeln!(
- output, "{}: {} verified ROAs, {} verified VRPs, {} final VRPs.",
- tal.tal.name(), tal.roas, tal.total_valid_vrps, tal.final_vrps
+ writeln!(output,
+ "{}: {} verified ROAs, {} verified VRPs, \
+ {} unsafe VRPs, {} final VRPs.",
+ tal.tal.name(), tal.roas, tal.total_valid_vrps,
+ tal.unsafe_filtered_vrps, tal.final_vrps
)?;
roas += tal.roas;
valid_vrps += tal.total_valid_vrps;
+ unsafe_vrps += tal.unsafe_filtered_vrps;
final_vrps += tal.final_vrps;
}
writeln!(output,
- "total: {} verified ROAs, {} verified VRPs, {} final VRPs.",
- roas, valid_vrps, final_vrps
+ "total: {} verified ROAs, {} verified VRPs, \
+ {} unsafe VRPs, {} final VRPs.",
+ roas, valid_vrps, unsafe_vrps, final_vrps
)
}
