mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
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:
parent
95b248a1ef
commit
b9105c35e5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user