Skip to content

Commit b9105c3

Browse files
committed
lntest: print node PID when launching in itests
In this commit, we start to print the PID of node's we created within an itest. This is useful when debugging itests with `dlv` by attaching to a given node. By printing out the PID, we facilitate such debugging attempts.
1 parent 95b248a commit b9105c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lntest/node/harness_node.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ func (hn *HarnessNode) StartLndCmd(ctxb context.Context) error {
399399
return err
400400
}
401401

402+
pid := hn.cmd.Process.Pid
403+
hn.T.Logf("Starting node (name=%v) with PID=%v", hn.Cfg.Name, pid)
404+
402405
return nil
403406
}
404407

0 commit comments

Comments
 (0)