Write tracing output to stderr instead of stdout

This commit is contained in:
Filip Tibell 2025-04-24 19:22:56 +02:00
parent b1d60d904c
commit 58a65afc2c
No known key found for this signature in database

View file

@ -1,6 +1,6 @@
#![allow(clippy::cargo_common_metadata)]
use std::process::ExitCode;
use std::{io::stderr, process::ExitCode};
#[cfg(feature = "cli")]
pub(crate) mod cli;
@ -17,6 +17,7 @@ async fn main() -> ExitCode {
.with_target(true)
.with_timer(tracing_subscriber::fmt::time::uptime())
.with_level(true)
.with_writer(stderr)
.init();
if let Some(bin) = standalone::check().await {