Use log instead of print for system start status messages (#1889)

This commit is contained in:
adityabagchi24
2026-07-22 21:40:43 -07:00
committed by GitHub
parent 9af6e0e5e5
commit 78e2cb4417
@@ -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")