From 493e520c4ee20e3efe72bb9920097c7910d55d12 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Wed, 18 Mar 2020 22:53:42 -0700 Subject: [PATCH] test: capture logs in test driver --- sqlx-test/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx-test/src/lib.rs b/sqlx-test/src/lib.rs index 82f5990a..c2d644dd 100644 --- a/sqlx-test/src/lib.rs +++ b/sqlx-test/src/lib.rs @@ -2,7 +2,7 @@ use sqlx::{Connect, Database}; fn setup_if_needed() { let _ = dotenv::dotenv(); - let _ = env_logger::try_init(); + let _ = env_logger::builder().is_test(true).try_init(); } // Make a new connection