Skip to content

Commit

Permalink
Add debug binary info
Browse files Browse the repository at this point in the history
  • Loading branch information
jackra1n committed May 18, 2024
1 parent 2e8d679 commit a829023
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ fn main() -> Result<(), Box<dyn Error>> {
let env = Env::default().default_filter_or("info");
Builder::from_env(env).init();

debug!("Binary info:");
debug!("================================");
debug!("Target OS: {}", std::env::consts::OS);
debug!("Target Family: {}", std::env::consts::FAMILY);
debug!("Target Architecture: {}", std::env::consts::ARCH);

let mut poe_disp = PoeDisplay::new()?;
info!("Display initialized");

Expand All @@ -44,9 +50,9 @@ fn main() -> Result<(), Box<dyn Error>> {

debug!("System initialized. System info:");
debug!("================================");
debug!("System name: {}", System::name().unwrap_or_default());
debug!("System kernel version: {}", System::kernel_version().unwrap_or_default());
debug!("System OS version: {}", System::os_version().unwrap_or_default());
debug!("System name: {}", System::name().unwrap_or_default());
debug!("System kernel version: {}", System::kernel_version().unwrap_or_default());
debug!("System OS version: {}", System::os_version().unwrap_or_default());

let mut disk_usage = String::new();
let disk_update_interval = Duration::from_secs(60);
Expand Down

0 comments on commit a829023

Please sign in to comment.