Skip to content

Commit

Permalink
refactor: cleanup debug info logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mmvanheusden committed Oct 29, 2024
1 parent 90fdca1 commit f7c2930
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,18 @@ async fn start_download(steam_download: steam::SteamDownload) {

let terminal_to_use = if steam_download.options().terminal().is_none() { default_terminal.first().unwrap() } else { &Terminal::from_index(&steam_download.options().terminal().unwrap()).unwrap() };

println!("-------------------------DEBUG INFO------------------------");
println!("\n-------------------------DEBUG INFO------------------------");
println!("received these values from frontend:");
println!("\t- Username: {}", steam_download.username().as_ref().unwrap_or(&String::from("Not provided")));
// println!("\t- Password: {}", steam_download.password().as_ref().unwrap_or(&String::from("Not provided"))); Don't log in prod lol
println!("\t- App ID: {}", steam_download.app_id());
println!("\t- Depot ID: {}", steam_download.depot_id());
println!("\t- Manifest ID: {}", steam_download.manifest_id());
println!("\t- Output Path: {}", steam_download.output_path());
println!("------------------------DEBUG INFORMATION-----------------");
println!("\t- Default terminal: {}", Terminal::pretty_name(&default_terminal[0]));
println!("\t- Terminal command: {:?}", terminal_to_use.create_command(&steam_download));
println!("\t- Working directory: {}", working_dir.display());
println!("----------------------------------------------------------");
println!("----------------------------------------------------------\n");

terminal_to_use.create_command(&steam_download).spawn().ok();
}
Expand Down

0 comments on commit f7c2930

Please sign in to comment.