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:
Olaoluwa Osuntokun 2024-11-15 17:21:43 -08:00
parent 95b248a1ef
commit b9105c35e5

View File

@ -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
}