Decouple report generation from logging

This commit is contained in:
Marc Plano-Lesay 2025-05-02 09:33:25 +10:00
parent df2e6ab126
commit 8158fdcab3
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
2 changed files with 196 additions and 31 deletions

View file

@ -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(())