diff --git a/Cargo.lock b/Cargo.lock index 9f99779..e85e870 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -944,8 +944,8 @@ checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] name = "load_config" -version = "1.1.2" -source = "git+https://github.com/9-FS/load_config?tag=1.1.2#e6b732da500ab9a38a76a4ecc3b647b15ffc45b9" +version = "1.2.0" +source = "git+https://github.com/9-FS/load_config?tag=1.2.0#19c4d4fc2bdc6da865c5e147815c0cabaf469995" dependencies = [ "figment", "serde", @@ -1036,7 +1036,7 @@ dependencies = [ [[package]] name = "nhentai_archivist" -version = "3.2.0" +version = "3.2.1" dependencies = [ "chrono", "load_config", diff --git a/Cargo.toml b/Cargo.toml index 628db82..1472dd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,11 +9,11 @@ license = "MIT" name = "nhentai_archivist" readme = "readme.md" repository = "https://github.com/9-FS/nhentai_archivist" -version = "3.2.0" +version = "3.2.1" [dependencies] chrono = { version = "^0.4.0", features = ["serde"] } -load_config = { git = "https://github.com/9-FS/load_config", tag = "1.1.2", features = [ +load_config = { git = "https://github.com/9-FS/load_config", tag = "1.2.0", features = [ "toml_file", ] } log = "^0.4.0" diff --git a/docker-compose.yaml b/docker-compose.yaml index c14c614..0d596fc 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,7 +3,7 @@ version: "3" services: nhentai_archivist: container_name: "nhentai_archivist" - image: "ghcr.io/9-fs/nhentai_archivist:3.2.0" + image: "ghcr.io/9-fs/nhentai_archivist:3.2.1" environment: HOST_OS: "Unraid" PGID: 100 diff --git a/src/main.rs b/src/main.rs index 9ff5716..3360fa0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,7 +40,11 @@ fn main() -> std::process::ExitCode Err(e) => // loading config failed { setup_logging::setup_logging(log::Level::Info, None, "./log/%Y-%m-%d.log"); // setup logging with default settings to log error - log::error!("{e}"); + match e + { + load_config::Error::CreatedDefaultFile {..} => log::info!("{e}"), // if default file created successfully: log as info + _ => log::error!("{e}"), + } return std::process::ExitCode::FAILURE; } }