diff --git a/src/main.rs b/src/main.rs index fde2715..63cae9c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,9 @@ async fn main() -> Result<()> { EnvFilter::try_from_default_env() .unwrap_or_else(|_| "openfut_core=debug,tower_http=debug".into()), ) - .with(tracing_subscriber::fmt::layer()) + // Diagnostics on stderr so stdout carries only machine output (the + // `import`/`seed-dev` subcommands print a clean JSON result there). + .with(tracing_subscriber::fmt::layer().with_writer(std::io::stderr)) .init(); let cfg = config::Config::from_env()?;