diff --git a/src/common/input/config.rs b/src/common/input/config.rs index b63ccef1..d9d1f784 100644 --- a/src/common/input/config.rs +++ b/src/common/input/config.rs @@ -6,7 +6,6 @@ use std::io::{self, Read}; use std::path::{Path, PathBuf}; use super::keybinds::{Keybinds, KeybindsFromYaml}; -use crate::utils::logging::*; use directories_next::ProjectDirs; use serde::Deserialize; @@ -49,8 +48,6 @@ impl Config { } /// Deserializes from given path. - /// The allow is here, because rust assumes there is no - /// error handling when logging the error to the log file. #[allow(unused_must_use)] pub fn new(path: &Path) -> Result { match File::open(path) { @@ -60,11 +57,7 @@ impl Config { .map_err(|e| ConfigError::IoPath(e, path.to_path_buf()))?; Ok(Config::from_yaml(&yaml_config)?) } - Err(e) => { - debug_log_to_file(format!( - "{}\nUsing the default configuration!", - ConfigError::IoPath(e, path.to_path_buf()) - )); + Err(_) => { Ok(Config::default()) } } diff --git a/src/common/mod.rs b/src/common/mod.rs index 8351bc4a..02e75f98 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -28,7 +28,6 @@ use wasmer_wasi::{Pipe, WasiState}; use crate::cli::CliArgs; use crate::common::input::config::Config; use crate::layout::Layout; -use crate::utils::logging::*; use command_is_executing::CommandIsExecuting; use errors::{AppContext, ContextType, ErrorContext, PluginContext, PtyContext, ScreenContext}; use input::handler::input_loop; @@ -173,7 +172,6 @@ pub fn start(mut os_input: Box, opts: CliArgs) { #[allow(unused_must_use)] let config = Config::from_option_or_default(opts.config) .map_err(|e| { - debug_log_to_file(format!("There was an error in the config file:\n{}", e)); eprintln!("There was an error in the config file:\n{}", e); std::process::exit(1); })