From 7ec47e90cce4c48cea5ceee571d27ae6bcdf1093 Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Fri, 4 Jul 2025 01:56:43 -0300 Subject: [PATCH] turn off tracing by default so that errors are not printed in the cli env is not set --- cli/app.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cli/app.rs b/cli/app.rs index a5a65e138..764434da6 100644 --- a/cli/app.rs +++ b/cli/app.rs @@ -24,6 +24,7 @@ use std::{ }, time::{Duration, Instant}, }; +use tracing::level_filters::LevelFilter; use tracing_appender::non_blocking::WorkerGuard; use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt, EnvFilter}; use turso_core::{Connection, Database, LimboError, OpenFlags, Statement, StepResult, Value}; @@ -908,7 +909,12 @@ impl Limbo { .with_thread_ids(true) .with_ansi(should_emit_ansi), ) - .with(EnvFilter::from_default_env().add_directive("rustyline=off".parse().unwrap())) + .with( + EnvFilter::builder() + .with_default_directive(LevelFilter::OFF.into()) + .from_env_lossy() + .add_directive("rustyline=off".parse().unwrap()), + ) .try_init() { println!("Unable to setup tracing appender: {:?}", e);