From ae2458a159cd8a65ff147b509e615912bde941b0 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Fri, 4 Oct 2024 18:13:45 +0200 Subject: [PATCH] update simple-log --- Cargo.lock | 16 +++++++++++++--- Cargo.toml | 2 +- src/main.rs | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 152a11f..530deef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1544,14 +1544,15 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "simple-log" -version = "1.9.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94263a9019c994147d7dc572aa1b3bce100bbdf5b5e3a8a446a025c80ecba169" +checksum = "7627f4405fddd099d56f0a20313404b42793cede451579a5c512ae55010e1551" dependencies = [ "log", "log4rs", "once_cell", "serde", + "winnow 0.6.20", ] [[package]] @@ -1823,7 +1824,7 @@ dependencies = [ "serde", "serde_spanned", "toml_datetime", - "winnow", + "winnow 0.5.40", ] [[package]] @@ -2380,6 +2381,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "winnow" +version = "0.6.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" +dependencies = [ + "memchr", +] + [[package]] name = "winreg" version = "0.51.0" diff --git a/Cargo.toml b/Cargo.toml index fc4064f..2d81324 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ reqwest = { version = "0.12.7", features = ["stream"] } futures-util = "0.3.30" indicatif = "0.17.8" tokio = {version="1.40.0", features = ["rt-multi-thread", "macros"]} -simple-log = "1.9.0" +simple-log = "2.1.0" [target.'cfg(unix)'.dependencies] openssl = { version = "0.10.66", default-features = false, features = ["vendored"] } diff --git a/src/main.rs b/src/main.rs index c7ced48..c72264f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -589,7 +589,7 @@ async fn main() { let logger_config = LogConfigBuilder::builder() .path(log_file.to_str().unwrap()) .time_format("%Y-%m-%d %H:%M:%S.%f") - .level("debug") + .level("debug").unwrap() .output_file() .build(); let _ = simple_log::new(logger_config);