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.
This commit is contained in:
1 parent
95b248a1ef
commit
b9105c35e5
1 file changed
+3
@@ -399,6 +399,9 @@ func (hn *HarnessNode) StartLndCmd(ctxb context.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
pid := hn.cmd.Process.Pid
|
||||
hn.T.Logf("Starting node (name=%v) with PID=%v", hn.Cfg.Name, pid)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user