mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
turn off tracing by default so that errors are not printed in the cli env is not set
This commit is contained in:
parent
89a81f9926
commit
7ec47e90cc
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue