Skip to content

Commit 121bec5

Browse files
daywalker90endothermicdev
authored andcommitted
pyln-testing: on cln 24.02.2 and earlier use log-level=debug
Changelog-None
1 parent 119be76 commit 121bec5

File tree

1 file changed

+6
-0
lines changed
  • contrib/pyln-testing/pyln/testing

1 file changed

+6
-0
lines changed

contrib/pyln-testing/pyln/testing/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,12 @@ def __init__(
615615
cln_version_proc = subprocess.check_output([self.executable, "--version"])
616616
self.cln_version = NodeVersion(cln_version_proc.decode('ascii').strip())
617617

618+
try:
619+
if VersionSpec.parse("<=v24.02.2").matches(self.cln_version):
620+
self.opts['log-level'] = "debug"
621+
except Exception:
622+
raise ValueError(f"Invalid version {type(self.cln_version)} - {self.cln_version}")
623+
618624
opts = {
619625
'lightning-dir': lightning_dir,
620626
'addr': '127.0.0.1:{}'.format(port),

0 commit comments

Comments
 (0)