mirror of
https://github.com/apple/container.git
synced 2026-08-24 02:24:19 -05:00
Use log instead of print for system start status messages (#1889)
This commit is contained in:
@@ -141,7 +141,7 @@ extension Application {
|
||||
}
|
||||
|
||||
do {
|
||||
print("Verifying machine API server is running...")
|
||||
log.info("Verifying machine API server is running...")
|
||||
_ = try await MachineClient().list()
|
||||
} catch {
|
||||
throw ContainerizationError(
|
||||
@@ -177,7 +177,7 @@ extension Application {
|
||||
private func installDefaultKernel(kernelURL: URL, kernelBinaryPath: String, kernelDigest: String) async throws {
|
||||
var shouldInstallKernel = false
|
||||
if kernelInstall == nil {
|
||||
print("No default kernel configured.")
|
||||
log.warning("No default kernel configured.")
|
||||
print("Install the recommended default kernel from [\(kernelURL)]? [Y/n]: ", terminator: "")
|
||||
guard let read = readLine(strippingNewline: true) else {
|
||||
throw ContainerizationError(.internalError, message: "failed to read user input")
|
||||
|
||||
Reference in New Issue
Block a user