Skip to content

Commit

Permalink
Add log info when pods are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
lemaitre-aneo committed Jul 18, 2024
1 parent 4e13dae commit 3622bdc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pdc-update/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,15 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
})
.collect::<Vec<_>>();

let n = updates.len();

// Apply updates
worker_updater.update_many(updates).await?;

match n {
0 => {}
1 => log::info!("{n} pod has been updated"),
_ => log::info!("{n} pods have been updated"),
}
}
}

0 comments on commit 3622bdc

Please sign in to comment.