Cgroup2Manager: Fix error log mistake (#269)

I accidentally made the creation log error level. Additionally adds a
log to deletion of the cg.
This commit is contained in:
Danny Canter
2025-08-18 12:19:55 -04:00
committed by GitHub
parent c3f5816353
commit 2f32e36a0d
+8 -1
View File
@@ -51,7 +51,7 @@ internal struct Cgroup2Manager {
self.path = mountPoint.appending(path: path.path)
self.logger = logger
self.logger?.error(
self.logger?.info(
"creating cgroup manager",
metadata: [
"mountpoint": "\(self.mountPoint.path)",
@@ -127,6 +127,13 @@ internal struct Cgroup2Manager {
}
func delete(force: Bool = false) throws {
self.logger?.info(
"deleting cgroup manager",
metadata: [
"mountpoint": "\(self.mountPoint.path)",
"path": "\(self.path.path)",
])
if force {
try self.kill()
}