Skip to content

Commit

Permalink
add log to config loading
Browse files Browse the repository at this point in the history
bump version
  • Loading branch information
takotori committed Jun 1, 2024
1 parent ab783a1 commit f9ba78e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "re_set-lib"
version = "5.0.1"
version = "5.0.2"
edition = "2021"
description = "Data structure library for ReSet"
repository = "https://github.com/Xetibo/ReSet-Lib"
Expand Down
4 changes: 3 additions & 1 deletion src/utils/plugin_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use libloading::Library;
use once_cell::sync::Lazy;
use toml::Value;

use crate::{create_config, ERROR};
use crate::{create_config, ERROR, LOG};
#[cfg(debug_assertions)]
use crate::{utils::macros::ErrorLevel, write_log_to_file};

Expand Down Expand Up @@ -60,10 +60,12 @@ static SETUP_LIBS: fn() = || {
let binding = CONFIG;
let plugins = binding.get("plugins");
if plugins.is_none() {
LOG!("No plugins entry found in config");
return;
}
let plugins = plugins.unwrap().as_array();
if plugins.is_none() {
ERROR!("Wrong config, please write plugins entry as array of strings: e.g [\"libyourplugin.so\"]", ErrorLevel::PartialBreakage);
return;
}
let plugins = plugins.unwrap();
Expand Down

0 comments on commit f9ba78e

Please sign in to comment.