diff options
Diffstat (limited to 'ozone-cli')
| -rw-r--r-- | ozone-cli/Cargo.toml | 1 | ||||
| -rw-r--r-- | ozone-cli/src/main.rs | 11 |
2 files changed, 7 insertions, 5 deletions
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<dyn Error>> { - 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<dyn Error>> { instance: "".into() }; launcher.prepare_launch(&profile).await?; - println!("ok"); + info!("ok"); Ok(()) } |
