Merge pull request #8124 from dcantah/log-bootstrapparams
runtime/v2: Log BootstrapParams
This commit is contained in:
commit
dc03a4baa2
@ -29,6 +29,7 @@ import (
|
||||
|
||||
"github.com/containerd/ttrpc"
|
||||
"github.com/hashicorp/go-multierror"
|
||||
"github.com/sirupsen/logrus"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/credentials/insecure"
|
||||
|
||||
@ -220,6 +221,11 @@ func makeConnection(ctx context.Context, address string, onClose func()) (_ io.C
|
||||
params.Protocol = "ttrpc"
|
||||
}
|
||||
|
||||
log.G(ctx).WithFields(logrus.Fields{
|
||||
"address": params.Address,
|
||||
"protocol": params.Protocol,
|
||||
}).Debug("shim bootstrap parameters")
|
||||
|
||||
switch strings.ToLower(params.Protocol) {
|
||||
case "ttrpc":
|
||||
conn, err := client.Connect(params.Address, client.AnonReconnectDialer)
|
||||
|
Loading…
Reference in New Issue
Block a user