]> Untitled Git - bdk/commitdiff
Initialize env_logger at start of blockchain tests
authorLLFourn <lloyd.fourn@gmail.com>
Fri, 21 May 2021 03:21:59 +0000 (13:21 +1000)
committerLLFourn <lloyd.fourn@gmail.com>
Fri, 21 May 2021 03:21:59 +0000 (13:21 +1000)
src/testutils/blockchain_tests.rs

index 3012716645d013870285d48c97d64abb63ab7b14..30999990df8b7759aaf8f95f6610a71580ce09f2 100644 (file)
@@ -361,6 +361,8 @@ macro_rules! bdk_blockchain_tests {
             }
 
             fn init_single_sig() -> (Wallet<$blockchain, MemoryDatabase>, (String, Option<String>), TestClient) {
+                let _ = env_logger::try_init();
+
                 let descriptors = testutils! {
                     @descriptors ( "wpkh(Alice)" ) ( "wpkh(Alice)" ) ( @keys ( "Alice" => (@generate_xprv "/44'/0'/0'/0/*", "/44'/0'/0'/1/*") ) )
                 };