From 5e4d81e9572464f3960af7723487cfe26320b9ce Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 16 Apr 2021 11:35:05 +0200 Subject: [PATCH] tape restore: simplify log (list datastores on single line) --- src/api2/tape/restore.rs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/api2/tape/restore.rs b/src/api2/tape/restore.rs index 6e1c81f6..d6903d40 100644 --- a/src/api2/tape/restore.rs +++ b/src/api2/tape/restore.rs @@ -305,11 +305,17 @@ pub fn restore( task_log!(worker, "Encryption key fingerprint: {}", fingerprint); } task_log!(worker, "Pool: {}", pool); - task_log!(worker, "Datastore(s):"); - store_map - .used_datastores() - .iter() - .for_each(|store| task_log!(worker, "\t{}", store)); + task_log!( + worker, + "Datastore(s): {}", + store_map + .used_datastores() + .into_iter() + .map(String::from) + .collect::>() + .join(", "), + ); + task_log!(worker, "Drive: {}", drive); task_log!( worker,