diff --git a/cli/app.rs b/cli/app.rs index c5cb2ff4f..3f04ab9fe 100644 --- a/cli/app.rs +++ b/cli/app.rs @@ -818,22 +818,27 @@ impl<'a> Limbo<'a> { } pub fn init_tracing(&mut self) -> Result { - let (non_blocking, guard) = if let Some(file) = &self.opts.tracing_output { - tracing_appender::non_blocking( - std::fs::File::options() - .append(true) - .create(true) - .open(file)?, - ) - } else { - tracing_appender::non_blocking(std::io::stderr()) - }; + let ((non_blocking, guard), should_emit_ansi) = + if let Some(file) = &self.opts.tracing_output { + ( + tracing_appender::non_blocking( + std::fs::File::options() + .append(true) + .create(true) + .open(file)?, + ), + false, + ) + } else { + (tracing_appender::non_blocking(std::io::stderr()), true) + }; if let Err(e) = tracing_subscriber::registry() .with( tracing_subscriber::fmt::layer() .with_writer(non_blocking) .with_line_number(true) - .with_thread_ids(true), + .with_thread_ids(true) + .with_ansi(should_emit_ansi), ) .with(EnvFilter::from_default_env()) .try_init() diff --git a/testing/cli_tests/memory.py b/testing/cli_tests/memory.py index e96df3475..da98bcc1d 100755 --- a/testing/cli_tests/memory.py +++ b/testing/cli_tests/memory.py @@ -2,8 +2,6 @@ import os from test_limbo_cli import TestLimboShell - -sqlite_exec = "./target/debug/limbo" sqlite_flags = os.getenv("SQLITE_FLAGS", "-q").split(" ") diff --git a/testing/testing b/testing/testing deleted file mode 100644 index e69de29bb..000000000