From b274a0fa443a74f82baaccc92176ee50fd5d9f69 Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Sun, 26 Mar 2023 00:14:45 +0200 Subject: remove env_logger dependency I didn't really use it anyway Reduces binary size from 1.9M to 1.3M --- src/config.rs | 6 +++--- src/main.rs | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/config.rs b/src/config.rs index a65269f..3ce06a2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -90,13 +90,13 @@ impl Config { read_to_string(config_path).context("Failed to read configuration")?; toml::from_str(&config).context("Failed to deserialize configuration")? } else { - info!("Using default configuration"); + eprintln!("Using default configuration"); Self::default() } } None => { - warn!("Could not find the configuration path"); - info!("Using default configuration"); + eprintln!("Could not find the configuration path"); + eprintln!("Using default configuration"); Self::default() } }) diff --git a/src/main.rs b/src/main.rs index d3457b5..b3c67db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,8 +2,6 @@ #[macro_use] extern crate anyhow; -#[macro_use] -extern crate log; mod bar; mod button_manager; @@ -31,8 +29,6 @@ use state::State; #[tokio::main(flavor = "current_thread")] async fn main() -> anyhow::Result<()> { - env_logger::init(); - let mut signals = Signals::new([SIGUSR1])?; let mut conn = Connection::connect()?; -- cgit v1.3.1