enable tracing subscriber in integration tests

This commit is contained in:
Nikita Sivukhin
2025-09-02 15:43:21 +04:00
parent 5b9fe0cdf3
commit 47808e9da8
3 changed files with 13 additions and 16 deletions

View File

@@ -64,9 +64,6 @@ impl TempDatabase {
}
pub fn new_with_rusqlite(table_sql: &str, enable_indexes: bool) -> Self {
let _ = tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.finish();
let mut path = TempDir::new().unwrap().keep();
path.push("test.db");
{

View File

@@ -1,16 +1,3 @@
mod test_cdc;
mod test_function_rowid;
mod test_wal_api;
#[cfg(test)]
mod tests {
use tracing_subscriber::EnvFilter;
#[ctor::ctor]
fn init() {
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
.with_ansi(false)
.init();
}
}

View File

@@ -5,3 +5,16 @@ mod fuzz_transaction;
mod pragma;
mod query_processing;
mod wal;
#[cfg(test)]
mod tests {
use tracing_subscriber::EnvFilter;
#[ctor::ctor]
fn init() {
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
.with_ansi(false)
.init();
}
}