diff --git a/desktop/src-tauri/src/auth.rs b/desktop/src-tauri/src/auth.rs index eb1b0002..03ca9e31 100644 --- a/desktop/src-tauri/src/auth.rs +++ b/desktop/src-tauri/src/auth.rs @@ -35,6 +35,7 @@ struct HandshakeResponse { id: String, } +// TODO: Change return value on Err pub fn sign_nonce(private_key: String, nonce: String) -> Result { let client_private_key = EcKey::private_key_from_pem(private_key.as_bytes()).unwrap(); let pkey_private_key = PKey::from_ec_key(client_private_key).unwrap(); diff --git a/desktop/src-tauri/src/games/downloads/download_agent.rs b/desktop/src-tauri/src/games/downloads/download_agent.rs index 934260a9..2a443a24 100644 --- a/desktop/src-tauri/src/games/downloads/download_agent.rs +++ b/desktop/src-tauri/src/games/downloads/download_agent.rs @@ -245,6 +245,7 @@ impl GameDownloadAgent { Ok(()) } + // TODO: Change return value on Err pub fn run(&self) -> Result { info!("downloading game: {}", self.id); let max_download_threads = DB.borrow_data().unwrap().settings.max_download_threads; diff --git a/desktop/src-tauri/src/process/process_manager.rs b/desktop/src-tauri/src/process/process_manager.rs index ec52c1d1..581b3259 100644 --- a/desktop/src-tauri/src/process/process_manager.rs +++ b/desktop/src-tauri/src/process/process_manager.rs @@ -8,7 +8,7 @@ use std::{ thread::spawn, }; -use log::{info, warn}; +use log::{debug, info, warn}; use serde::{Deserialize, Serialize}; use shared_child::SharedChild; use tauri::{AppHandle, Manager}; @@ -106,7 +106,7 @@ impl ProcessManager<'_> { return; } - info!("process for {:?} exited with {:?}", meta, result); + debug!("process for {:?} exited with {:?}", meta, result); self.processes.remove(&meta); @@ -155,7 +155,7 @@ impl ProcessManager<'_> { } let mut db_lock = DB.borrow_data_mut().unwrap(); - info!( + debug!( "Launching process {:?} with games {:?}", meta, db_lock.applications.game_versions ); @@ -164,7 +164,7 @@ impl ProcessManager<'_> { .applications .game_statuses .get(&meta.id) - .ok_or("Game not installed")?; + .ok_or("game not installed")?; let status_metadata: Option<(&String, &String)> = match game_status { GameDownloadStatus::Installed { @@ -179,7 +179,7 @@ impl ProcessManager<'_> { }; if status_metadata.is_none() { - return Err("Game has not been downloaded.".to_owned()); + return Err("game has not been downloaded.".to_owned()); } let (version_name, install_dir) = status_metadata.unwrap();