Skip to content

Commit

Permalink
Use stderr for tracing output (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed May 1, 2024
1 parent 880ca6e commit c0da3d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/tracing.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::io::stderr;

use tracing::level_filters::LevelFilter;
use tracing_subscriber::EnvFilter;

Expand Down Expand Up @@ -26,11 +28,13 @@ pub fn init() {
if FMT_PRETTY {
tracing_subscriber::fmt()
.with_env_filter(tracing_env_filter)
.with_writer(stderr)
.pretty()
.init();
} else {
tracing_subscriber::fmt()
.with_env_filter(tracing_env_filter)
.with_writer(stderr)
.with_target(false)
.without_time()
.init();
Expand Down

0 comments on commit c0da3d9

Please sign in to comment.