mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
test: capture logs in test driver
This commit is contained in:
parent
a3a97fc0a4
commit
493e520c4e
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ use sqlx::{Connect, Database};
|
||||||
|
|
||||||
fn setup_if_needed() {
|
fn setup_if_needed() {
|
||||||
let _ = dotenv::dotenv();
|
let _ = dotenv::dotenv();
|
||||||
let _ = env_logger::try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make a new connection
|
// Make a new connection
|
||||||
|
|
Loading…
Reference in a new issue