Skip to content

Commit 61bed84

Browse files
committed
bitcoind and electrs stdout logging
1 parent 594bf5c commit 61bed84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/common/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ pub(crate) fn setup_bitcoind_and_electrsd() -> (BitcoinD, ElectrsD) {
179179
let mut bitcoind_conf = corepc_node::Conf::default();
180180
bitcoind_conf.network = "regtest";
181181
bitcoind_conf.args.push("-rest");
182+
bitcoind_conf.view_stdout = true;
182183
let bitcoind = BitcoinD::with_conf(bitcoind_exe, &bitcoind_conf).unwrap();
183184

184185
let electrs_exe = env::var("ELECTRS_EXE")
@@ -188,6 +189,7 @@ pub(crate) fn setup_bitcoind_and_electrsd() -> (BitcoinD, ElectrsD) {
188189
let mut electrsd_conf = electrsd::Conf::default();
189190
electrsd_conf.http_enabled = true;
190191
electrsd_conf.network = "regtest";
192+
electrsd_conf.view_stderr = true;
191193
let electrsd = ElectrsD::with_conf(electrs_exe, &bitcoind, &electrsd_conf).unwrap();
192194
(bitcoind, electrsd)
193195
}

0 commit comments

Comments
 (0)