From 591cb47ace6d2e00d6dcf51c54825ae5c85375f5 Mon Sep 17 00:00:00 2001 From: lif <> Date: Fri, 21 Jul 2023 03:14:58 +0000 Subject: [PATCH] wip: fmt --- sled-agent/src/storage/dump_setup.rs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/sled-agent/src/storage/dump_setup.rs b/sled-agent/src/storage/dump_setup.rs index 305723e1b86..2c7456dbfc7 100644 --- a/sled-agent/src/storage/dump_setup.rs +++ b/sled-agent/src/storage/dump_setup.rs @@ -425,10 +425,18 @@ impl DumpSetupWorker { if let Some(path) = entry.file_name().to_str() { let dest = debug_dir.join(path); - if let Err(err) = Self::copy_sync_and_remove(&entry.path(), &dest) { - error!(self.log, "Failed to archive {entry:?}: {err:?}"); + if let Err(err) = + Self::copy_sync_and_remove(&entry.path(), &dest) + { + error!( + self.log, + "Failed to archive {entry:?}: {err:?}" + ); } else { - info!(self.log, "Relocated {entry:?} to {dest:?}"); + info!( + self.log, + "Relocated {entry:?} to {dest:?}" + ); } } else { error!(self.log, "Non-UTF8 path found while archiving core dumps: {entry:?}"); @@ -519,7 +527,10 @@ impl DumpSetupWorker { if !rotated_log_files.is_empty() { std::fs::create_dir_all(&dest_dir)?; let count = rotated_log_files.len(); - info!(self.log, "Archiving {count} log files from {zone_name} zone"); + info!( + self.log, + "Archiving {count} log files from {zone_name} zone" + ); } for entry in rotated_log_files { let src_name = entry.file_name().unwrap();