Update dial.go (#3261)

What:
Bring back partial nodeID to debug.trace-out

Why:
The information is useful for interpreting the trace file and was there up drpc. I just bring it back.
https://github.com/storj/storj/blob/v0.21.3/pkg/transport/transport.go#L76

Please describe the tests:

Test 1:
Test 2:
Please describe the performance impact:
No impact.
This commit is contained in:
Marc Schubert 2019-10-14 23:44:15 +02:00 committed by JT Olio
parent 694177e217
commit 93d5eeda31

View File

@ -94,7 +94,7 @@ func (d Dialer) dialContext(ctx context.Context, address string) (net.Conn, erro
// DialNode creates an rpc connection to the specified node.
func (d Dialer) DialNode(ctx context.Context, node *pb.Node) (_ *Conn, err error) {
defer mon.Task()(&ctx)(&err)
defer mon.Task()(&ctx, "node: "+node.Id.String()[0:8])(&err)
if d.TLSOptions == nil {
return nil, Error.New("tls options not set when required for this dial")