From e04543db09ce872a06bbd3aa751bbd6c3a7531c5 Mon Sep 17 00:00:00 2001 From: yylt Date: Tue, 4 Mar 2025 16:15:14 +0800 Subject: [PATCH] use shimCtx for fifo copy Signed-off-by: yylt --- core/runtime/v2/shim.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/runtime/v2/shim.go b/core/runtime/v2/shim.go index db7307bc0..d9e1053fa 100644 --- a/core/runtime/v2/shim.go +++ b/core/runtime/v2/shim.go @@ -91,9 +91,9 @@ func loadShim(ctx context.Context, bundle *Bundle, onClose func()) (_ ShimInstan // To prevent flood of error messages, the expected error // should be reset, like os.ErrClosed or os.ErrNotExist, which // depends on platform. - err = checkCopyShimLogError(ctx, err) + err = checkCopyShimLogError(shimCtx, err) if err != nil { - log.G(ctx).WithError(err).Error("copy shim log after reload") + log.G(shimCtx).WithError(err).Error("copy shim log after reload") } }() onCloseWithShimLog := func() {