From a0632c9768832f70513fbc0c3b68fa6b145efeb2 Mon Sep 17 00:00:00 2001 From: Per Stark Date: Fri, 22 Aug 2025 13:41:30 +0200 Subject: [PATCH] fix: write to stderr for journalctl compatability --- main/src/main.rs | 2 +- main/src/server.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/main.rs b/main/src/main.rs index e8b4dd0..bbb50f0 100644 --- a/main/src/main.rs +++ b/main/src/main.rs @@ -13,7 +13,7 @@ use tokio::task::LocalSet; async fn main() -> Result<(), Box> { // Set up tracing tracing_subscriber::registry() - .with(fmt::layer()) + .with(fmt::layer().with_writer(std::io::stderr)) .with(EnvFilter::from_default_env()) .try_init() .ok(); diff --git a/main/src/server.rs b/main/src/server.rs index c14244b..51ac8c4 100644 --- a/main/src/server.rs +++ b/main/src/server.rs @@ -11,7 +11,7 @@ use tracing_subscriber::{fmt, prelude::*, EnvFilter}; async fn main() -> Result<(), Box> { // Set up tracing tracing_subscriber::registry() - .with(fmt::layer()) + .with(fmt::layer().with_writer(std::io::stderr)) .with(EnvFilter::from_default_env()) .try_init() .ok();