mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-10 04:22:13 +10:00
chore: More refining info!() statements
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
@ -35,6 +35,7 @@ struct HandshakeResponse {
|
||||
id: String,
|
||||
}
|
||||
|
||||
// TODO: Change return value on Err
|
||||
pub fn sign_nonce(private_key: String, nonce: String) -> Result<String, ()> {
|
||||
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();
|
||||
|
||||
@ -245,6 +245,7 @@ impl GameDownloadAgent {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
// TODO: Change return value on Err
|
||||
pub fn run(&self) -> Result<bool, ()> {
|
||||
info!("downloading game: {}", self.id);
|
||||
let max_download_threads = DB.borrow_data().unwrap().settings.max_download_threads;
|
||||
|
||||
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user