mirror of
https://github.com/apple/container.git
synced 2026-09-10 09:45:39 +00:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user