diff options
Diffstat (limited to 'ozone-cli/src')
| -rw-r--r-- | ozone-cli/src/main.rs | 11 |
1 files changed, 6 insertions, 5 deletions
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(()) } |
