diff --git a/Cargo.toml b/Cargo.toml index 0e94cc7..484fb00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "re_set-lib" -version = "5.0.2" +version = "5.0.3" edition = "2021" description = "Data structure library for ReSet" repository = "https://github.com/Xetibo/ReSet-Lib" diff --git a/src/utils/config.rs b/src/utils/config.rs index 5fc4faa..eaafed3 100644 --- a/src/utils/config.rs +++ b/src/utils/config.rs @@ -3,7 +3,7 @@ use std::{fs, io::Read}; use once_cell::sync::Lazy; use toml::Table; -use crate::ERROR; +use crate::{ERROR, LOG}; #[cfg(debug_assertions)] use crate::{utils::macros::ErrorLevel, write_log_to_file}; @@ -27,6 +27,7 @@ pub const CONFIG: Lazy = Lazy::new(parse_config); pub fn parse_config() -> Table { unsafe { let config_file = fs::File::open(CONFIG_STRING.as_str()); + LOG!(format!("Config file: {}", CONFIG_STRING.as_str())); if config_file.is_err() { ERROR!("Could not write config file", ErrorLevel::Recoverable); return Table::new(); @@ -40,6 +41,7 @@ pub fn parse_config() -> Table { ERROR!("Could not read config file", ErrorLevel::Recoverable); return Table::new(); } + LOG!(format!("Config file content: {}", config_string)); config_string.parse::
().expect("Config has errors") } }