Skip to content

Commit

Permalink
update simple-log
Browse files Browse the repository at this point in the history
  • Loading branch information
mxve committed Oct 4, 2024
1 parent 41a17c8 commit ae2458a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae2458a

Please sign in to comment.