diff options
author | Alex Auvolat <alex@adnab.me> | 2022-08-31 14:28:17 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-08-31 14:28:17 +0200 |
commit | 44cd98d2e4eb981f29c3124c7ab3ddf55ccb3848 (patch) | |
tree | 26380705d534918d5684aac463eb1eeecb01966a /src/garage/main.rs | |
parent | dd5304f6fc2b4af3556549a3b587f588407dfa71 (diff) | |
download | garage-44cd98d2e4eb981f29c3124c7ab3ddf55ccb3848.tar.gz garage-44cd98d2e4eb981f29c3124c7ab3ddf55ccb3848.zip |
Tracing-subscriber: write to stderr
Diffstat (limited to 'src/garage/main.rs')
-rw-r--r-- | src/garage/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/garage/main.rs b/src/garage/main.rs index 65abfd48..cc441727 100644 --- a/src/garage/main.rs +++ b/src/garage/main.rs @@ -59,7 +59,9 @@ async fn main() { if std::env::var("RUST_LOG").is_err() { 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"); // Abort on panic (same behavior as in Go) |