From 625d7717b6e45593515c1160cd553dd66ce45826 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Tue, 5 Nov 2024 15:02:31 -0800 Subject: [PATCH] flakehub logging review comments --- magic-nix-cache/src/api.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/magic-nix-cache/src/api.rs b/magic-nix-cache/src/api.rs index 5598af4..71cdf66 100644 --- a/magic-nix-cache/src/api.rs +++ b/magic-nix-cache/src/api.rs @@ -103,16 +103,11 @@ async fn workflow_finish( tracing::info!("Waiting for FlakeHub cache uploads to finish"); let paths = attic_state.push_session.wait().await?; - tracing::info!( - "Uploaded to FlakeHub Cache: {}", - paths - .keys() - .map(|s| s.name()) - .collect::>() - .join(", ") - ); + let paths = paths.keys().map(|s| s.name()).collect::>(); + + tracing::info!(?paths, "FlakeHub Cache uploads completed.",); } else { - tracing::info!("NOT Waiting for FlakeHub cache uploads to finish"); + tracing::info!("FlakeHub cache is not enabled, not uploading anything to it"); } if let Some(sender) = state.shutdown_sender.lock().await.take() {