Tracing-subscriber: write to stderr
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Alex 2022-08-31 14:28:17 +02:00
parent dd5304f6fc
commit 44cd98d2e4
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -59,7 +59,9 @@ async fn main() {
if std::env::var("RUST_LOG").is_err() { if std::env::var("RUST_LOG").is_err() {
std::env::set_var("RUST_LOG", "netapp=info,garage=info") std::env::set_var("RUST_LOG", "netapp=info,garage=info")
} }
tracing_subscriber::fmt::init(); tracing_subscriber::fmt()
.with_writer(std::io::stderr)
.init();
sodiumoxide::init().expect("Unable to init sodiumoxide"); sodiumoxide::init().expect("Unable to init sodiumoxide");
// Abort on panic (same behavior as in Go) // Abort on panic (same behavior as in Go)