Skip to content

Commit

Permalink
pyln-testing: on cln 24.02.2 and earlier use log-level=debug
Browse files Browse the repository at this point in the history
Changelog-None
  • Loading branch information
daywalker90 authored and endothermicdev committed Feb 21, 2025
1 parent 119be76 commit 121bec5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/pyln-testing/pyln/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,12 @@ def __init__(
cln_version_proc = subprocess.check_output([self.executable, "--version"])
self.cln_version = NodeVersion(cln_version_proc.decode('ascii').strip())

try:
if VersionSpec.parse("<=v24.02.2").matches(self.cln_version):
self.opts['log-level'] = "debug"
except Exception:
raise ValueError(f"Invalid version {type(self.cln_version)} - {self.cln_version}")

opts = {
'lightning-dir': lightning_dir,
'addr': '127.0.0.1:{}'.format(port),
Expand Down

0 comments on commit 121bec5

Please sign in to comment.