Repair mistake: send logs to stderr instead of stdout

This commit is contained in:
Tony Garnock-Jones 2021-08-25 17:31:48 +02:00
parent 86e140ef2f
commit 2658cedc4f
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
use crate::actor::*;
use std::fmt::Debug;
use std::io;
use std::sync::Arc;
struct Tracer(tracing::Span);
@ -64,6 +65,7 @@ pub fn convenient_logging() -> Result<(), Box<dyn std::error::Error>> {
.with_ansi(true)
.with_max_level(tracing::Level::TRACE)
.with_env_filter(filter)
.with_writer(io::stderr)
.finish();
tracing::subscriber::set_global_default(subscriber)
.expect("Could not set tracing global subscriber");