Skip to content

Commit 48e2f41

Browse files
authored
vminitd: Log spec for exec processes (#274)
We had a log for the initial oci runtime spec, but we don't log anything for execed processes. This makes it hard to look into issues that may be due to just a mistake in the spec and nothing wrong with the actual logic of the program.
1 parent 53021be commit 48e2f41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vminitd/Sources/vminitd/ManagedContainer.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ actor ManagedContainer {
5050
path: Self.craftBundlePath(id: id),
5151
spec: spec
5252
)
53-
log.info("created bundle with spec \(spec)")
53+
log.debug("created bundle with spec \(spec)")
5454

5555
let cgManager = Cgroup2Manager(
5656
group: URL(filePath: cgroupsPath),
@@ -101,6 +101,8 @@ extension ManagedContainer {
101101
stdio: HostStdio,
102102
process: ContainerizationOCI.Process
103103
) throws {
104+
log.debug("creating exec process with \(process)")
105+
104106
// Write the process config to the bundle, and pass this on
105107
// over to ManagedProcess to deal with.
106108
try self.bundle.createExecSpec(

0 commit comments

Comments
 (0)