Skip to content

Commit 84313b1

Browse files
committed
Additional improvements to log messages
1 parent 140208d commit 84313b1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

vminitd/Sources/vminitd/Application.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ struct Application {
107107

108108
log.logLevel = .debug
109109

110-
log.info("vminitd booting...")
110+
log.info("vminitd booting")
111111
let eg = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount)
112112
let server = Initd(log: log, group: eg)
113113

114114
do {
115-
log.info("serve vminitd API")
115+
log.info("serving vminitd API")
116116
try await server.serve(port: vsockPort)
117-
log.info("vminitd API returned...")
117+
log.info("vminitd API returned")
118118
} catch {
119119
log.error("vminitd boot error \(error)")
120120
exit(1)

vminitd/Sources/vminitd/Server+GRPC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ extension Initd: Com_Apple_Containerization_Sandbox_V3_SandboxContextAsyncProvid
508508
if error is GRPCStatus {
509509
throw error
510510
}
511-
throw GRPCStatus(code: .internalError, message: "create managed process: \(error)")
511+
throw GRPCStatus(code: .internalError, message: "createProcess: \(error)")
512512
}
513513
}
514514

vminitd/Sources/vminitd/Server.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ final class Initd: Sendable {
114114
try await server.onClose.get()
115115
}
116116
try await group.next()
117+
log.info("closing gRPC server")
117118
group.cancelAll()
118119
}
119120
}

0 commit comments

Comments
 (0)