summaryrefslogtreecommitdiffhomepage
path: root/pkg/v1/shim/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/v1/shim/service.go')
-rw-r--r--pkg/v1/shim/service.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/v1/shim/service.go b/pkg/v1/shim/service.go
index e23bf957a..083dfa534 100644
--- a/pkg/v1/shim/service.go
+++ b/pkg/v1/shim/service.go
@@ -551,7 +551,7 @@ func newInit(ctx context.Context, path, workDir, runtimeRoot, namespace string,
if err != nil {
return nil, errors.Wrap(err, "read oci spec")
}
- userLog := runsc.FormatLogPath(r.ID, config)
+ runsc.FormatLogPath(r.ID, config)
rootfs := filepath.Join(path, "rootfs")
runtime := proc.NewRunsc(runtimeRoot, path, namespace, r.Runtime, config)
p := proc.New(r.ID, runtime, rproc.Stdio{
@@ -567,7 +567,7 @@ func newInit(ctx context.Context, path, workDir, runtimeRoot, namespace string,
p.IoUID = int(options.IoUid)
p.IoGID = int(options.IoGid)
p.Sandbox = utils.IsSandbox(spec)
- p.UserLog = userLog
+ p.UserLog = utils.UserLogPath(spec)
p.Monitor = shim.Default
return p, nil
}