From 3622bdc4cf4bdda69089ea725f276b7862644e3e Mon Sep 17 00:00:00 2001 From: Florian Lemaitre Date: Thu, 18 Jul 2024 10:03:44 +0200 Subject: [PATCH] Add log info when pods are updated --- pdc-update/src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pdc-update/src/main.rs b/pdc-update/src/main.rs index c97793c..642a17c 100644 --- a/pdc-update/src/main.rs +++ b/pdc-update/src/main.rs @@ -101,7 +101,15 @@ async fn main() -> Result<(), Box> { }) .collect::>(); + 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"), + } } }