Skip to content

Commit

Permalink
remove use of tracing-appender
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveL-MSFT committed Oct 1, 2023
1 parent b64605f commit dd7acee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion dsc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ syntect = { version = "5.0", features = ["default-fancy"], default-features = fa
sysinfo = { version = "0.29.10" }
thiserror = "1.0"
tracing = "0.1.37"
tracing-appender = "0.2.2"
tracing-subscriber = "0.3.17"
3 changes: 1 addition & 2 deletions dsc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ fn main() {
check_debug();

// create subscriber that writes all events to stderr
let (non_blocking, _guard) = tracing_appender::non_blocking(std::io::stderr());
let subscriber = tracing_subscriber::fmt().pretty().with_writer(non_blocking).finish();
let subscriber = tracing_subscriber::fmt().pretty().with_writer(std::io::stderr).finish();
if tracing::subscriber::set_global_default(subscriber).is_err() {
eprintln!("Unable to set global default subscriber");
}
Expand Down

0 comments on commit dd7acee

Please sign in to comment.