Skip to content

Commit

Permalink
fix: Use stderr for logs generated with tracing. (#2198)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfornet authored Feb 27, 2020
1 parent f331cf0 commit 319da67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion near/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::convert::TryInto;
use std::env;
use std::fs;
use std::io;
use std::path::Path;

use actix::System;
Expand Down Expand Up @@ -42,7 +43,10 @@ fn init_logging(verbose: Option<&str>) {
}
}

tracing_subscriber::fmt::Subscriber::builder().with_env_filter(env_filter).init();
tracing_subscriber::fmt::Subscriber::builder()
.with_env_filter(env_filter)
.with_writer(io::stderr)
.init();
}

fn main() {
Expand Down

0 comments on commit 319da67

Please sign in to comment.