chore(dtmm): Improve debug logging

This commit is contained in:
Lucas Schwiderski 2023-03-07 19:45:47 +01:00
parent 18760d7760
commit 53188f8c30
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -574,7 +574,7 @@ pub(crate) async fn deploy_mods(state: State) -> Result<()> {
tracing::info!(
"Deploying {} mods to {}",
state.mods.len(),
state.mods.iter().filter(|i| i.enabled).count(),
state.game_dir.join("bundle").display()
);
@ -604,7 +604,10 @@ pub(crate) async fn deploy_mods(state: State) -> Result<()> {
if !contains {
let task = async move {
let path = bundle_dir.join(file_name);
let path = bundle_dir.join(&file_name);
tracing::debug!("Removing unused bundle '{}'", file_name);
if let Err(err) = fs::remove_file(&path).await.wrap_err_with(|| {
format!("failed to remove unused bundle '{}'", path.display())
}) {