Skip to content

Commit

Permalink
lnprototest: remove info logging when it is not necessary
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed Mar 7, 2022
1 parent c7144c5 commit fd9bae5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lnprototest/backend/bitcoind.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, basedir: str):
self.rpc = None
self.proc = None
self.base_dir = basedir
logging.info(f"Base dir is {basedir}")
logging.debug(f"Base dir is {basedir}")
self.bitcoin_dir = os.path.join(basedir, "bitcoind")
self.bitcoin_conf = os.path.join(self.bitcoin_dir, "bitcoin.conf")
self.cmd_line = [
Expand Down
8 changes: 4 additions & 4 deletions lnprototest/clightning/clightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ def start(self) -> None:
try:
self.bitcoind.start()
except Exception as ex:
self.logger.info(f"Exception with message {ex}")
self.logger.info("RUN Bitcoind")
self.logger.debug(f"Exception with message {ex}")
self.logger.debug("RUN Bitcoind")
self.rpc = pyln.client.LightningRpc(
os.path.join(self.lightning_dir, "regtest", "lightning-rpc")
)
self.logger.info("RUN clightning")
self.logger.debug("RUN c-lightning")

def node_ready(rpc: pyln.client.LightningRpc) -> bool:
try:
Expand All @@ -157,7 +157,7 @@ def node_ready(rpc: pyln.client.LightningRpc) -> bool:
return False

wait_for(lambda: node_ready(self.rpc))
logging.info("Waiting fro c-lightning")
logging.debug("Waited fro c-lightning")

# Make sure that we see any funds that come to our wallet
for i in range(5):
Expand Down

0 comments on commit fd9bae5

Please sign in to comment.