From 2950f29561baf3d3771e170a667beae1e6c04bf2 Mon Sep 17 00:00:00 2001 From: Vyncint Ng <115854244+vyncint@users.noreply.github.com> Date: Wed, 5 Aug 2026 22:31:41 +0700 Subject: [PATCH] Send `container machine run` forced-exit diagnostic to stderr --- Sources/ContainerCommands/Machine/MachineRun.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/ContainerCommands/Machine/MachineRun.swift b/Sources/ContainerCommands/Machine/MachineRun.swift index dc62132ca..379375597 100644 --- a/Sources/ContainerCommands/Machine/MachineRun.swift +++ b/Sources/ContainerCommands/Machine/MachineRun.swift @@ -128,8 +128,9 @@ extension Application { if !tty { var handler = SignalThreshold(threshold: 3, signals: [SIGINT, SIGTERM]) + let log = self.log handler.start { - print("Received 3 SIGINT/SIGTERM's, forcefully exiting.") + log.warning("Received 3 SIGINT/SIGTERM's, forcefully exiting.") Darwin.exit(1) } }