Skip to content

Commit 92cc76a

Browse files
ksedgwicdevrandom
authored andcommitted
Prefix vlsd logging w/ mathcing node ordinal
1 parent 15ad1a5 commit 92cc76a

File tree

1 file changed

+4
-3
lines changed
  • contrib/pyln-testing/pyln/testing

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def getnewaddress(self):
531531

532532

533533
class ValidatingLightningSignerD(TailableProc):
534-
def __init__(self, vlsd_dir, vlsd_port):
534+
def __init__(self, vlsd_dir, vlsd_port, node_id):
535535
TailableProc.__init__(self, vlsd_dir)
536536
self.executable = env("REMOTE_SIGNER_CMD", 'vlsd')
537537
self.opts = [
@@ -547,7 +547,7 @@ def __init__(self, vlsd_dir, vlsd_port):
547547
BITCOIND_CONFIG['rpcpassword'],
548548
BITCOIND_CONFIG['rpcport']),
549549
]
550-
self.prefix = 'vlsd'
550+
self.prefix = 'vlsd-%d' % (node_id)
551551
self.vlsd_port = vlsd_port
552552

553553
@property
@@ -579,6 +579,7 @@ def __init__(self, lightning_dir, bitcoindproxy, port=9735, random_hsm=False, no
579579
self.lightning_dir = lightning_dir
580580
self.use_vlsd = False
581581
self.vlsd_dir = os.path.join(lightning_dir, "vlsd")
582+
self.node_id = node_id
582583

583584
self.rpcproxy = bitcoindproxy
584585

@@ -663,7 +664,7 @@ def start(self, stdin=None, stdout=None, stderr=None,
663664
if self.use_vlsd:
664665
# Start the remote signer first
665666
vlsd_port = reserve()
666-
self.vlsd = ValidatingLightningSignerD(self.vlsd_dir, vlsd_port)
667+
self.vlsd = ValidatingLightningSignerD(self.vlsd_dir, vlsd_port, self.node_id)
667668
self.vlsd.start(stdin, stdout, stderr, wait_for_initialized)
668669

669670
# We can't do this in the constructor because we need a new port on each restart.

0 commit comments

Comments
 (0)