Skip to content

Commit

Permalink
refactor(core): change log level
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Nov 3, 2023
1 parent edd2a4d commit bb25909
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions dar2oar_core/src/fs/parallel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ where
.join(mod_name.unwrap_or(&parsed_mod_name));

if path.is_dir() {
log::debug!("Dir: {:?}", path);
log::trace!("Dir: {:?}", path);
} else if path.extension().is_some() {
log::debug!("File: {:?}", path);
log::trace!("File: {:?}", path);
let file_name = path
.file_name()
.ok_or_else(|| ConvertError::NotFoundFileName)?
Expand Down Expand Up @@ -156,7 +156,6 @@ where

match is_converted_once {
true => {
tracing::debug!("Conversion Completed.");
if hide_dar {
rename_dir(dar_namespace.as_ref()).await?;
rename_dir(dar_1st_namespace.as_ref()).await?;
Expand Down
6 changes: 3 additions & 3 deletions dar2oar_core/src/fs/sequential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ where
let mut dar_1st_namespace = None; // To need rename to hidden(For _1stperson)

let walk_len = WalkDir::new(&dar_dir).collect::<Vec<_>>().await.len(); // Lower performance cost when sender is None.
log::debug!("Dir & File Counts: {}", walk_len);
log::trace!("Dir & File Counts: {}", walk_len);
tokio::spawn(async_fn(walk_len));

let mut entries = WalkDir::new(dar_dir);
Expand Down Expand Up @@ -77,9 +77,9 @@ where
.join(mod_name.unwrap_or(&parsed_mod_name));

if path.is_dir() {
tracing::debug!("Dir: {:?}", path);
tracing::trace!("Dir: {:?}", path);
} else if path.extension().is_some() {
tracing::debug!("File: {:?}", path);
tracing::trace!("File: {:?}", path);
let file_name = path
.file_name()
.ok_or_else(|| ConvertError::NotFoundFileName)?
Expand Down

0 comments on commit bb25909

Please sign in to comment.