From 76f621a8454389ffbe1a6fe7fada0deeebf2f757 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Wed, 17 May 2023 16:47:00 +0200 Subject: feat: Better logging regarding mod installation (#363) * fix: Make log comment more specific * feat: Log attempting to create temp dir * feat: Log mod to install and GameInstall struct * refactor: Replace `dbg` with proper logging * refactor: Replace `dbg` with proper logging * feat: Warning log mod install error * style: Fix formatting * feat: Log libthermite error and modstring when mod install fails --- src-tauri/src/northstar/install.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src-tauri/src/northstar') diff --git a/src-tauri/src/northstar/install.rs b/src-tauri/src/northstar/install.rs index 235c35ff..344c0ccf 100644 --- a/src-tauri/src/northstar/install.rs +++ b/src-tauri/src/northstar/install.rs @@ -38,6 +38,10 @@ async fn do_install( let filename = format!("northstar-{}.zip", nmod.version); let download_directory = format!("{}/___flightcore-temp-download-dir/", game_path.display()); + log::info!( + "Attempting to create temporary directory {}", + download_directory + ); std::fs::create_dir_all(download_directory.clone())?; let download_path = format!("{}/{}", download_directory, filename); -- cgit v1.2.3