mirror of
https://github.com/apple/container.git
synced 2026-09-12 10:45:42 +00:00
Remove an unnecessary function (#351)
Remove an unnecessary function to simplify the code.
This commit is contained in:
@@ -70,10 +70,6 @@ final class ManagedProcess: Sendable {
|
||||
}
|
||||
// swiftlint: enable type_name
|
||||
|
||||
static func localizeLogger(log: inout Logger, id: String) {
|
||||
log[metadataKey: "id"] = "\(id)"
|
||||
}
|
||||
|
||||
private static let ackPid = "AckPid"
|
||||
private static let ackConsole = "AckConsole"
|
||||
|
||||
@@ -87,7 +83,7 @@ final class ManagedProcess: Sendable {
|
||||
) throws {
|
||||
self.id = id
|
||||
var log = log
|
||||
Self.localizeLogger(log: &log, id: id)
|
||||
log[metadataKey: "id"] = "\(id)"
|
||||
self.log = log
|
||||
self.owningPid = owningPid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user