Merge pull request #5230 from wzshiming/fix/log-kill-shim

Fix error log when kill shim
This commit is contained in:
Phil Estes 2021-03-19 09:20:18 -04:00 committed by GitHub
commit fbf79545df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,7 +219,7 @@ func (r *Runtime) Create(ctx context.Context, id string, opts runtime.CreateOpts
namespaces.WithNamespace(context.TODO(), namespace), cleanupTimeout) namespaces.WithNamespace(context.TODO(), namespace), cleanupTimeout)
defer deferCancel() defer deferCancel()
if kerr := s.KillShim(deferCtx); kerr != nil { if kerr := s.KillShim(deferCtx); kerr != nil {
log.G(ctx).WithError(err).Error("failed to kill shim") log.G(ctx).WithError(kerr).Error("failed to kill shim")
} }
} }
}() }()