Skip to content

Commit

Permalink
Put bitcoind logging in stdout for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs authored and rustyrussell committed May 25, 2023
1 parent 12ecffb commit 1037bf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/pyln-testing/pyln/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ def __init__(self, bitcoin_dir="/tmp/bitcoind-test", rpcport=None):
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',
Expand Down Expand Up @@ -433,7 +434,7 @@ def __del__(self):
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")
Expand Down

0 comments on commit 1037bf3

Please sign in to comment.