Merge pull request #1529 from wainersm/for_stable-2.0

[backport] runtime: Fix missing 'name' field on containerd-shim-v2 logs
This commit is contained in:
Peng Tao 2021-03-23 15:14:15 +08:00 committed by GitHub
commit c27c3c40dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,10 @@ var (
var vci vc.VC = &vc.VCImpl{} var vci vc.VC = &vc.VCImpl{}
// shimLog is logger for shim package // shimLog is logger for shim package
var shimLog = logrus.WithField("source", "containerd-kata-shim-v2") var shimLog = logrus.WithFields(logrus.Fields{
"source": "containerd-kata-shim-v2",
"name": "containerd-shim-v2",
})
// New returns a new shim service that can be used via GRPC // New returns a new shim service that can be used via GRPC
func New(ctx context.Context, id string, publisher events.Publisher) (cdshim.Shim, error) { func New(ctx context.Context, id string, publisher events.Publisher) (cdshim.Shim, error) {