diff --git a/src/config.rs b/src/config.rs index 7ec895e..d7c2ee8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -30,4 +30,4 @@ pub fn save_config(config: &AppState) -> Result<(), SaveConfigError> { file.write_all(toml_str.as_bytes())?; info!("Config file saved successfully"); Ok(()) -} \ No newline at end of file +} diff --git a/src/main.rs b/src/main.rs index f151dca..ea989fb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,7 +16,8 @@ const APP_ID: &str = "net.nickiel.joystick-controller-client"; fn main() -> glib::ExitCode { env::set_var("gtk_csd", "0"); - if let Err(e) = SimpleLogger::init(simplelog::LevelFilter::Debug, simplelog::Config::default()) { + if let Err(e) = SimpleLogger::init(simplelog::LevelFilter::Debug, simplelog::Config::default()) + { error!("Failed to init the simplelogger!: {e}"); }