diff --git a/core/runtime/v2/binary.go b/core/runtime/v2/binary.go index c77fb494bb58..47780301e879 100644 --- a/core/runtime/v2/binary.go +++ b/core/runtime/v2/binary.go @@ -195,7 +195,7 @@ func (b *binary) Delete(ctx context.Context) (*runtime.Exit, error) { cmd.Stdout = out cmd.Stderr = errb if err := cmd.Run(); err != nil { - log.G(ctx).WithField("cmd", cmd).WithError(err).Error("failed to delete") + log.G(ctx).WithField("cmd", cmd.String()).WithError(err).Error("failed to delete") return nil, fmt.Errorf("%s: %w", errb.String(), err) } s := errb.String()