From b833fbff8e24b56a1587b0115ee4332627d38ec2 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Tue, 14 Jan 2025 20:38:26 -0600 Subject: fix stuff --- ozone-cli/Cargo.toml | 1 + ozone-cli/src/main.rs | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'ozone-cli') diff --git a/ozone-cli/Cargo.toml b/ozone-cli/Cargo.toml index e60a539..bdcec85 100644 --- a/ozone-cli/Cargo.toml +++ b/ozone-cli/Cargo.toml @@ -8,3 +8,4 @@ sysinfo = { version = "0.33.1", features = ["system", "multithread"] } o3launcher = { path = ".." } tokio = { version = "1.43.0", features = ["rt", "rt-multi-thread", "macros"] } simple_logger = { version = "5.0.0", features = ["colors"] } +log = "0.4.25" diff --git a/ozone-cli/src/main.rs b/ozone-cli/src/main.rs index 67932da..d14d2a1 100644 --- a/ozone-cli/src/main.rs +++ b/ozone-cli/src/main.rs @@ -1,16 +1,17 @@ use std::env::consts::{ARCH, OS}; use std::error::Error; use std::path::PathBuf; +use log::info; use sysinfo::System; use o3launcher::launcher::Profile; #[tokio::main] async fn main() -> Result<(), Box> { - simple_logger::SimpleLogger::new().init().unwrap(); + simple_logger::SimpleLogger::new().env().init().unwrap(); - println!("Hello, world!"); - println!("stuff: {:?} {:?} {:?} {:?} {:?}", System::name(), System::os_version(), System::long_os_version(), System::kernel_version(), System::cpu_arch()); - println!("stuff: {:?} {:?} {:?} {}", System::distribution_id(), OS, ARCH, size_of::<*const i32>()); + info!("Hello, world!"); + info!("stuff: {:?} {:?} {:?} {:?} {:?}", System::name(), System::os_version(), System::long_os_version(), System::kernel_version(), System::cpu_arch()); + info!("stuff: {:?} {:?} {:?} {}", System::distribution_id(), OS, ARCH, size_of::<*const i32>()); let launcher = o3launcher::launcher::Launcher::new(PathBuf::from("./work").as_path(), true).await?; let profile = Profile { @@ -19,7 +20,7 @@ async fn main() -> Result<(), Box> { instance: "".into() }; launcher.prepare_launch(&profile).await?; - println!("ok"); + info!("ok"); Ok(()) } -- cgit v1.2.3-70-g09d2