aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-08-31 14:28:17 +0200
committerAlex Auvolat <alex@adnab.me>2022-08-31 14:28:17 +0200
commit44cd98d2e4eb981f29c3124c7ab3ddf55ccb3848 (patch)
tree26380705d534918d5684aac463eb1eeecb01966a /src
parentdd5304f6fc2b4af3556549a3b587f588407dfa71 (diff)
downloadgarage-44cd98d2e4eb981f29c3124c7ab3ddf55ccb3848.tar.gz
garage-44cd98d2e4eb981f29c3124c7ab3ddf55ccb3848.zip
Tracing-subscriber: write to stderr
Diffstat (limited to 'src')
-rw-r--r--src/garage/main.rs4
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)