Decouple report generation from logging
This commit is contained in:
parent
df2e6ab126
commit
8158fdcab3
2 changed files with 196 additions and 31 deletions
|
|
@ -194,9 +194,8 @@ async fn main() -> Result<()> {
|
|||
}
|
||||
}
|
||||
|
||||
// Generate report
|
||||
if let Err(e) = report::generate_report(&action_results, total_new_links) {
|
||||
warn!("Failed to generate report: {}", e);
|
||||
for line in report::generate_report(&action_results, total_new_links).lines() {
|
||||
info!("{}", line);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue