diff --git a/dar2oar_core/src/fs/converter/common.rs b/dar2oar_core/src/fs/converter/common.rs index af45a9a..8e57e3f 100644 --- a/dar2oar_core/src/fs/converter/common.rs +++ b/dar2oar_core/src/fs/converter/common.rs @@ -106,11 +106,11 @@ pub async fn convert_inner( let file = &non_leaf_dir.join(file_name); tracing::debug!("Create dirs: {:?}", &non_leaf_dir); fs::create_dir_all(&non_leaf_dir).await?; - tracing::debug!("Copy with Nest Dir:\nfrom: {path:?}\nto: {file:?}"); + tracing::debug!("Copy with Nest Dir:\n- From: {path:?}\n- To: {file:?}"); fs::copy(path, file).await?; } else { let file = section_root.join(file_name); - tracing::debug!("Copy:\nfrom: {path:?}\nto: {file:?}"); + tracing::debug!("Copy:\n- From: {path:?}\n- To: {file:?}"); fs::create_dir_all(§ion_root).await?; fs::copy(path, file).await?; } diff --git a/dar2oar_core/src/fs/converter/support_cmd.rs b/dar2oar_core/src/fs/converter/support_cmd.rs index e3e2b56..d13591e 100644 --- a/dar2oar_core/src/fs/converter/support_cmd.rs +++ b/dar2oar_core/src/fs/converter/support_cmd.rs @@ -34,7 +34,7 @@ pub async fn unhide_dar( async move { let mut no_hidden_path = path.as_path().to_owned(); no_hidden_path.set_extension(""); // Remove .mohidden extension - tracing::debug!("Rename {idx}th:\nfrom: {path:?}\nto: {no_hidden_path:?}"); + tracing::debug!("Rename {idx}th:\n- From: {path:?}\n- To: {no_hidden_path:?}\n"); fs::rename(path.as_path(), no_hidden_path).await?; // # Ordering validity: @@ -85,7 +85,7 @@ pub async fn remove_oar( let found_once = Arc::clone(&found_once); async move { - tracing::debug!("Try to remove oar dir: {:?}", &oar_dir); + tracing::debug!("Try to remove oar dir: {:?}\n", &oar_dir); fs::remove_dir_all(oar_dir).await?; // # Ordering validity: // Use `AcqRel` to `happened before relationship`(form a memory read/write order between threads) of cas(compare_and_swap),