Skip to content

Commit

Permalink
Merge pull request #137 from karlding/remove_slog_async_dependency
Browse files Browse the repository at this point in the history
Remove slog-async dependency
  • Loading branch information
tummychow authored Jan 6, 2025
2 parents 425cb17 + 954af5d commit 2c2cf6b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 36 deletions.
34 changes: 0 additions & 34 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ clap_complete = "4"
clap_complete_nushell = "4"
slog = "2.5"
slog-term = "2.6"
slog-async = "2.5"
memchr = "2.3"
anyhow = "1.0"

Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ fn main() {

let decorator = slog_term::TermDecorator::new().build();
let drain = slog_term::FullFormat::new(decorator).build().fuse();
let drain = slog_async::Async::new(drain).build().fuse();
let drain = std::sync::Mutex::new(drain).fuse();

let drain = slog::LevelFilter::new(
drain,
if verbose {
Expand Down

0 comments on commit 2c2cf6b

Please sign in to comment.