fix: write to stderr for journalctl compatability

This commit is contained in:
Per Stark
2025-08-22 13:41:30 +02:00
parent 33300d3193
commit a0632c9768
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ use tokio::task::LocalSet;
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// 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();

View File

@@ -11,7 +11,7 @@ use tracing_subscriber::{fmt, prelude::*, EnvFilter};
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// 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();