Skip to content

Commit c2d6ffc

Browse files
authored
CLI: Send logs to stderr (#544)
I'm not sure why we had these going to OSLog, but I'd wager they're a bit more useful being displayed directly to the user during the command they're running.
1 parent c65e892 commit c2d6ffc

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Sources/CLI/Application.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,9 @@ import TerminalProgress
2929

3030
// `log` is updated only once in the `validate()` method.
3131
nonisolated(unsafe) var log = {
32-
LoggingSystem.bootstrap { label in
33-
OSLogHandler(
34-
label: label,
35-
category: "CLI"
36-
)
37-
}
32+
LoggingSystem.bootstrap(StreamLogHandler.standardError)
3833
var log = Logger(label: "com.apple.container")
39-
log.logLevel = .debug
34+
log.logLevel = .info
4035
return log
4136
}()
4237

0 commit comments

Comments
 (0)