Skip to content

Commit fbf7954

Browse files
authored
Merge pull request #5230 from wzshiming/fix/log-kill-shim
Fix error log when kill shim
2 parents 2d5f9bf + fe787ef commit fbf7954

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/v1/linux/runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (r *Runtime) Create(ctx context.Context, id string, opts runtime.CreateOpts
219219
namespaces.WithNamespace(context.TODO(), namespace), cleanupTimeout)
220220
defer deferCancel()
221221
if kerr := s.KillShim(deferCtx); kerr != nil {
222-
log.G(ctx).WithError(err).Error("failed to kill shim")
222+
log.G(ctx).WithError(kerr).Error("failed to kill shim")
223223
}
224224
}
225225
}()

0 commit comments

Comments
 (0)