Skip to content

Commit 2950f29

Browse files
authored
Send container machine run forced-exit diagnostic to stderr
1 parent ddaf2ca commit 2950f29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sources/ContainerCommands/Machine/MachineRun.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ extension Application {
128128

129129
if !tty {
130130
var handler = SignalThreshold(threshold: 3, signals: [SIGINT, SIGTERM])
131+
let log = self.log
131132
handler.start {
132-
print("Received 3 SIGINT/SIGTERM's, forcefully exiting.")
133+
log.warning("Received 3 SIGINT/SIGTERM's, forcefully exiting.")
133134
Darwin.exit(1)
134135
}
135136
}

0 commit comments

Comments
 (0)