mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-11 01:54:25 +01:00
Put bitcoind logging in stdout for pytest
This commit is contained in:
committed by
Rusty Russell
parent
12ecffb197
commit
1037bf3c43
@@ -406,6 +406,7 @@ class BitcoinD(TailableProc):
|
||||
self.cmd_line = [
|
||||
'bitcoind',
|
||||
'-datadir={}'.format(bitcoin_dir),
|
||||
'-debuglogfile={}'.format(os.path.join(bitcoin_dir, "log")), # So it can be put to stdout
|
||||
'-printtoconsole',
|
||||
'-server',
|
||||
'-logtimestamps',
|
||||
@@ -433,7 +434,7 @@ class BitcoinD(TailableProc):
|
||||
drop_unused_port(self.reserved_rpcport)
|
||||
|
||||
def start(self):
|
||||
TailableProc.start(self)
|
||||
TailableProc.start(self, stdout_redir=False)
|
||||
self.wait_for_log("Done loading", timeout=TIMEOUT)
|
||||
|
||||
logging.info("BitcoinD started")
|
||||
|
||||
Reference in New Issue
Block a user