From fe787efa2b708e67749b126715246b00da009468 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Fri, 19 Mar 2021 19:01:16 +0800 Subject: [PATCH] Fix error log when kill shim Signed-off-by: Shiming Zhang --- runtime/v1/linux/runtime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/v1/linux/runtime.go b/runtime/v1/linux/runtime.go index b2101f326..aa6d3f314 100644 --- a/runtime/v1/linux/runtime.go +++ b/runtime/v1/linux/runtime.go @@ -219,7 +219,7 @@ func (r *Runtime) Create(ctx context.Context, id string, opts runtime.CreateOpts namespaces.WithNamespace(context.TODO(), namespace), cleanupTimeout) defer deferCancel() 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") } } }()