Skip to content

Commit 2f32e36

Browse files
authored
Cgroup2Manager: Fix error log mistake (#269)
I accidentally made the creation log error level. Additionally adds a log to deletion of the cg.
1 parent c3f5816 commit 2f32e36

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

vminitd/Sources/vminitd/CgroupManager.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ internal struct Cgroup2Manager {
5151
self.path = mountPoint.appending(path: path.path)
5252
self.logger = logger
5353

54-
self.logger?.error(
54+
self.logger?.info(
5555
"creating cgroup manager",
5656
metadata: [
5757
"mountpoint": "\(self.mountPoint.path)",
@@ -127,6 +127,13 @@ internal struct Cgroup2Manager {
127127
}
128128

129129
func delete(force: Bool = false) throws {
130+
self.logger?.info(
131+
"deleting cgroup manager",
132+
metadata: [
133+
"mountpoint": "\(self.mountPoint.path)",
134+
"path": "\(self.path.path)",
135+
])
136+
130137
if force {
131138
try self.kill()
132139
}

0 commit comments

Comments
 (0)